A trace provider interface that enables different SKUs to provide their own span implementations while being managed by the core SDK.

This follows the OpenTelemetry TraceProvider pattern, allowing the core to delegate span creation to the appropriate implementation based on the SDK variant.

3.4.0

interface ITraceProvider {
    api: IOTelApi;
    createSpan(name: string, options?: IOTelSpanOptions, parent?: IDistributedTraceContext): IReadableSpan;
    getProviderId(): string;
    isAvailable(): boolean;
}

Properties

The OpenTelemetry API instance associated with this trace provider. This provides access to the tracer provider and other OpenTelemetry functionality.

3.4.0

Methods

  • Gets the provider identifier for debugging and logging purposes.

    Returns string

    A string identifying this trace provider implementation

    3.4.0

  • Determines if this provider is available and ready to create spans.

    Returns boolean

    true if the provider can create spans, false otherwise

    3.4.0