-
Notifications
You must be signed in to change notification settings - Fork 515
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
Centralized way to configure custom instrumentation #1960
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8d10a02
Some ideas of how this could look like
antonpirker 049eb01
Merge branch 'master' into antonpirker/instrumentation-list
antonpirker 9459e69
A working thing
antonpirker 23e3a53
Updated naming
antonpirker b06f1db
Merge branch 'master' into antonpirker/instrumentation-list
antonpirker 4d6d2e7
Better warning message
antonpirker 92cfa8e
Make tests run in old python
antonpirker cfd1475
Test for instrumenting class method
antonpirker 6ac46f2
Catch error on old Python versions
antonpirker bccb0a5
Ignore typing
antonpirker aec66e5
Fixed arq tests
antonpirker 29ed6b7
Merge branch 'master' into antonpirker/instrumentation-list
antonpirker c21bde6
Merge branch 'master' into antonpirker/instrumentation-list
antonpirker 687089e
Merge branch 'master' into antonpirker/instrumentation-list
antonpirker 16f8125
Added debug output
antonpirker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
import_module
is a lot of magic, becauseeval
call and we should be very careful of introducing such things in our codebase.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, true. If there is code executed on module load it could be have unintentional behavior.
But this optional and is only active when
functions_to_trace
is set.What if we point out this concerns in the documentation, so people know about them when activating this feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mitsuhiko can I get your opinion on this? Should we avoid putting
import_module
in the SDK (although it needs to be enabled by default)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m okay with importing from strings. But I can’t say about the feature as such.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you saying you can not say anything about the feature, or are you saying that you are not okay with the feature @mitsuhiko ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(On another note, @mdtro (Matthew T) said in slack: A note in the documentation is sufficient, imo. The list should be static or loaded from a secure source (no user or untrusted input).)