-
Notifications
You must be signed in to change notification settings - Fork 556
feat: Added breadcrumbs for httplib #52
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
Conversation
Since urllib3 uses httplib I wonder if this would double-log requests when using urllib3 or requests (or an older version of requests that uses stdlib urllib) |
sentry_sdk/integrations/__init__.py
Outdated
@@ -9,11 +9,13 @@ | |||
|
|||
def _get_default_integrations(): | |||
from .logging import LoggingIntegration | |||
from .stdlib import StdlibIntegration |
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.
probably meant to be httplib
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 wanted to make an stdlib integration with all the hooks against the stdlib instead of one integration per stdlib module
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.
ok, should we move the logging integration into this?
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 would keep that one separate because it's so special.
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.
Keep in mind though that if we put too much into one integration you can't enable/disable each of the "sub-integrations" one-by-one.
I don't understand why you do this though since the stdlibintegration is enabled by default anyway.
I don't think it dual logs as urllib3 does not use httplib i think. At least we did the same thing in the old lib and did not dual record. Will test though |
b565509
to
862ee26
Compare
862ee26
to
24a3cec
Compare
can't repro this bs locally so let's print out local vars |
35f678c
to
8ae46fc
Compare
8ae46fc
to
b8a9743
Compare
@mitsuhiko please check if this works on your machine. I magically managed to reproduce the travis failure this morning |
No description provided.