Skip to content

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

Merged
rochdev merged 1 commit into
masterfrom
fix-plugin-errors-when-disabled
Nov 19, 2018
Merged

fix errors caused by instrumentation when the tracer is disabled#381
rochdev merged 1 commit into
masterfrom
fix-plugin-errors-when-disabled

Conversation

@rochdev

@rochdev rochdev commented Nov 16, 2018

Copy link
Copy Markdown
Member

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
@rochdev
rochdev requested a review from brettlangdon November 16, 2018 18:55

@brettlangdon brettlangdon left a comment

Copy link
Copy Markdown
Member

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