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, disposing copies the telemetry item onto the Activity and stops it.
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.