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
System.Object
OperationTelemetry
Derived
Implements

Constructors

OperationTelemetry()

Properties

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

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

ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

Extension Methods

GetEnvelopeName(ITelemetry)

Gets envelope name for ITelemetry object.

TrySetEnvelopeName(ITelemetry, String)

Sets envelope name for ITelemetry object.

Applies to