Skip to content

Commit

Permalink
Merge 26feb4f into 70a128f
Browse files Browse the repository at this point in the history
  • Loading branch information
Flarna authored Feb 8, 2021
2 parents 70a128f + 26feb4f commit 4c72a91
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 4c72a91

Please sign in to comment.