Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents a basic tracer provider which platform libraries can extend

Hierarchy

  • BasicTracerProvider

Implements

Index

Constructors

Properties

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

Methods

  • forceFlush(): Promise<void>
  • getTracer(name: string, version?: string, options?: { schemaUrl?: string }): Tracer
  • 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. {@link NoopTracerProvider} vs. a functional tracer).

    Parameters

    • name: string
    • Optional version: string
    • Optional options: { schemaUrl?: string }
      • Optional schemaUrl?: string

    Returns Tracer

    Tracer A Tracer with the given name and version

  • shutdown(): Promise<void>

Generated using TypeDoc