Skip to content

Commit

Permalink
chore: remove config from BasicTracerProvider#getTracer (#1908)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Dyla <[email protected]>
  • Loading branch information
Flarna and dyladan authored Feb 8, 2021
1 parent 70a128f commit dc38495
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/opentelemetry-tracing/src/BasicTracerProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)!;
Expand Down

0 comments on commit dc38495

Please sign in to comment.