Skip to content

Pass the GlobalTracerAccessor into OpenTracingLogger #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2019
Merged

Conversation

yelob
Copy link
Contributor

@yelob yelob commented Aug 30, 2019

See #37

This PR resolves the issue by passing the GlobalTracerAccessor into OpenTracingLogger instead of an instance of ITracer. This prevents the NoopTracer from being cached if logger providers are resolved before the GlobalTracer is registered.

…Tracer is not cached when the tracer hasn't been configured yet and logger providers are resolved.
@austinlparker austinlparker merged commit 00df9de into opentracing-contrib:master Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants