<PackageReference Include="Microsoft.ApplicationInsights" Version="3.0.0-beta2" />

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.
public Activity Activity { get; }

Gets the associated Activity for this operation, if any.

public T Telemetry { get; }

Gets the telemetry item that represents this operation.

public OperationHolder(TelemetryClient telemetryClient, T telemetry, Activity activity)

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.

public void Dispose()

Disposes the operation and stops the underlying Activity, which triggers OpenTelemetry exporter emission.