Share via


OperationTelemetry Class

Definition

Base class for telemetry types representing duration in time.

public abstract class OperationTelemetry : Microsoft.ApplicationInsights.Channel.ITelemetry, Microsoft.ApplicationInsights.DataContracts.ISupportMetrics, Microsoft.ApplicationInsights.DataContracts.ISupportProperties
type OperationTelemetry = class
    interface ITelemetry
    interface ISupportMetrics
    interface ISupportProperties
Public MustInherit Class OperationTelemetry
Implements ISupportMetrics, ISupportProperties, ITelemetry
Inheritance
OperationTelemetry
Derived
Implements

Constructors

Name Description
OperationTelemetry()

Properties

Name Description
Context

Gets the object that contains contextual information about the application at the time when it handled the request.

Duration

Gets or sets the duration of the operation.

Extension

Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.

Id

Gets or sets Operation ID.

Metrics

Gets the custom metrics collection.

Name

Gets or sets the name of the operation.

Properties

Gets the custom properties collection.

Sequence

Gets or sets the value that defines absolute order of the telemetry item.

StartTime
Obsolete.

Gets or sets the start time of the operation.

Success

Gets or sets whether operation has finished successfully.

Timestamp

Gets or sets the timestamp for the operation.

Methods

Name Description
DeepClone()

Deeply clones a OperationTelemetry object.

Sanitize()

Allow to call OperationTelemetry.Sanitize method from child classes.

SerializeData(ISerializationWriter)

Writes serialization info about the data class of the implementing type using the given ISerializationWriter.

Explicit Interface Implementations

Name Description
ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

Extension Methods

Name Description
GetEnvelopeName(ITelemetry)

Gets envelope name for ITelemetry object.

TrySetEnvelopeName(ITelemetry, String)

Sets envelope name for ITelemetry object.

Applies to