Microsoft.ApplicationInsights.Extensibility.Implementation.OperationHolder<T>
Represents an ongoing telemetry operation that wraps a telemetry item and its associated Activity.
In the OpenTelemetry-based shim, this class simply stops the underlying Activity on dispose.
Gets the associated Activity for this operation, if any.
Gets the telemetry item that represents this operation.
Initializes a new instance of the OperationHolder<T> class.
public OperationHolder(TelemetryClient telemetryClient, T telemetry, Activity activity, Activity suppressedActivity)
Initializes a new instance of the OperationHolder<T> class.
Disposes the operation and stops the underlying Activity, which triggers OpenTelemetry exporter emission.