Register this TracerProvider for use with the OpenTelemetry API. Undefined values may be replaced with defaults, and null values will be skipped.

Configuration object for SDK registration

Hierarchy

  • BasicTracerProvider
    • NodeTracerProvider

Constructors

  • Parameters

    • Optionalconfig: TracerConfig

    Returns NodeTracerProvider

Properties

activeSpanProcessor: SpanProcessor
resource: IResource
_registeredExporters: Map<string, EXPORTER_FACTORY>
_registeredPropagators: Map<string, PROPAGATOR_FACTORY>

Methods

  • Returns undefined | SpanExporter

  • Returns undefined | TextMapPropagator<any>

  • TS cannot yet infer the type of this.constructor: https://github.com/Microsoft/TypeScript/issues/3841#issuecomment-337560146 There is no need to override either of the getters in your child class. The type of the registered component maps should be the same across all classes in the inheritance tree.

    Parameters

    • name: string

    Returns undefined | TextMapPropagator<any>

  • Parameters

    • name: string

    Returns undefined | SpanExporter

  • Parameters

    • spanProcessor: SpanProcessor

      the new SpanProcessor to be added.

    Returns void

    please use TracerConfig spanProcessors property Adds a new SpanProcessor to this tracer.

  • Returns Promise<void>

  • Returns SpanProcessor

  • Returns a Tracer, creating one if one with the given name and version is not already created.

    This function may return different Tracer types (e.g. NoopTracerProvider vs. a functional tracer).

    Parameters

    • name: string

      The name of the tracer or instrumentation library.

    • Optionalversion: string

      The version of the tracer or instrumentation library.

    • Optionaloptions: { schemaUrl?: string }

      The options of the tracer or instrumentation library.

    Returns Tracer

    Tracer A Tracer with the given name and version

  • Register this TracerProvider for use with the OpenTelemetry API. Undefined values may be replaced with defaults, and null values will be skipped.

    Parameters

    • Optionalconfig: SDKRegistrationConfig

      Configuration object for SDK registration

    Returns void

  • Returns Promise<void>