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

Microsoft.ApplicationInsights.Extensibility.Implementation.OperationTelemetry

Base class for telemetry types representing duration in time.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation { public abstract class OperationTelemetry : ITelemetry, ISupportMetrics, ISupportProperties { public DateTimeOffset StartTime { get; set; } public abstract string Id { get; set; } public abstract string Name { get; set; } public abstract bool? Success { get; set; } public abstract TimeSpan Duration { get; set; } public abstract IDictionary<string, double> Metrics { get; } public abstract IDictionary<string, string> Properties { get; } public abstract DateTimeOffset Timestamp { get; set; } public abstract TelemetryContext Context { get; } public abstract string Sequence { get; set; } public abstract IExtension Extension { get; set; } public abstract ITelemetry DeepClone(); public abstract void SerializeData(ISerializationWriter serializationWriter); protected void Sanitize(); protected OperationTelemetry(); } }