<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.OperationTelemetry

Base class for telemetry types representing duration in time.
public abstract TelemetryContext Context { get; }

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

public abstract TimeSpan Duration { get; set; }

Gets or sets the duration of the operation.

public abstract IExtension Extension { get; set; }

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

public abstract string Id { get; set; }

Gets or sets Operation ID.

public abstract IDictionary<string, double> Metrics { get; }

Gets the custom metrics collection.

public abstract string Name { get; set; }

Gets or sets the name of the operation.

public abstract IDictionary<string, string> Properties { get; }

Gets the custom properties collection.

public abstract string Sequence { get; set; }

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

public DateTimeOffset StartTime { get; set; }

Gets or sets the start time of the operation.

public abstract bool? Success { get; set; }

Gets or sets whether operation has finished successfully.

public abstract DateTimeOffset Timestamp { get; set; }

Gets or sets the timestamp for the operation.

protected OperationTelemetry()

public abstract ITelemetry DeepClone()

Deeply clones a OperationTelemetry object.

protected void Sanitize()

Allow to call OperationTelemetry.Sanitize method from child classes.

public abstract void SerializeData(ISerializationWriter serializationWriter)