Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents everything needed to register a fully configured OpenTelemetry Node.js SDK

Hierarchy

  • NodeSDK

Index

Constructors

constructor

Methods

addResource

  • addResource(resource: Resource): void

configureMeterProvider

  • configureMeterProvider(config: MeterConfig): void

configureTracerProvider

  • configureTracerProvider(tracerConfig: TracerConfig, spanProcessor: SpanProcessor, contextManager?: ContextManager, textMapPropagator?: TextMapPropagator<any>): void
  • Set configurations required to register a NodeTracerProvider

    Parameters

    • tracerConfig: TracerConfig
    • spanProcessor: SpanProcessor
    • Optional contextManager: ContextManager
    • Optional textMapPropagator: TextMapPropagator<any>

    Returns void

detectResources

  • detectResources(config?: ResourceDetectionConfig): Promise<void>

shutdown

  • shutdown(): Promise<void>

start

  • start(): Promise<void>

Generated using TypeDoc