Skip to content
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

fix errors caused by instrumentation when the tracer is disabled #381

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Nov 16, 2018

This PR fixes errors that were caused by instrumentation even when the tracer was disabled. Any plugin registered with tracer.use() would end up patching the corresponding module even when the tracer is disabled, causing errors from plugins trying to access tracer properties.

The instrumenter now has to be enabled explicitly before it will apply patching.

Fixes #378

@rochdev rochdev added bug Something isn't working core labels Nov 16, 2018
@rochdev rochdev added this to the 0.7.1 milestone Nov 16, 2018
Copy link
Member

@brettlangdon brettlangdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rochdev rochdev merged commit 134b761 into master Nov 19, 2018
@rochdev rochdev deleted the fix-plugin-errors-when-disabled branch November 19, 2018 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http plugin fails when added via use on disabled tracers
2 participants