diff --git a/packages/opentelemetry-tracing/src/BasicTracerProvider.ts b/packages/opentelemetry-tracing/src/BasicTracerProvider.ts index a5c4b377cc..913b448ac5 100644 --- a/packages/opentelemetry-tracing/src/BasicTracerProvider.ts +++ b/packages/opentelemetry-tracing/src/BasicTracerProvider.ts @@ -52,13 +52,10 @@ export class BasicTracerProvider implements api.TracerProvider { }); } - getTracer(name: string, version?: string, config?: TracerConfig): Tracer { + getTracer(name: string, version?: string): Tracer { const key = `${name}@${version || ''}`; if (!this._tracers.has(key)) { - this._tracers.set( - key, - new Tracer({ name, version }, config || this._config, this) - ); + this._tracers.set(key, new Tracer({ name, version }, this._config, this)); } return this._tracers.get(key)!;