diff --git a/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts b/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts index 2329ec76c50..1b30aee8beb 100644 --- a/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts +++ b/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts @@ -204,13 +204,13 @@ export class BasicTracerProvider implements TracerProvider { protected _getPropagator(name: string): TextMapPropagator | undefined { return ( - (this.constructor as any)._registeredPropagators as typeof BasicTracerProvider._registeredPropagators + (BasicTracerProvider as any)._registeredPropagators as typeof BasicTracerProvider._registeredPropagators ).get(name)?.(); } protected _getSpanExporter(name: string): SpanExporter | undefined { return ( - (this.constructor as any)._registeredExporters as typeof BasicTracerProvider._registeredExporters + (BasicTracerProvider as any)._registeredExporters as typeof BasicTracerProvider._registeredExporters ).get(name)?.(); }