-
Notifications
You must be signed in to change notification settings - Fork 652
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
Updating examples to use tracer_source #360
Conversation
Signed-off-by: Alex Boten <aboten@lightstep.com>
Codecov Report
@@ Coverage Diff @@
## master #360 +/- ##
=======================================
Coverage 84.82% 84.82%
=======================================
Files 38 38
Lines 1839 1839
Branches 217 217
=======================================
Hits 1560 1560
Misses 214 214
Partials 65 65 Continue to review full report at Codecov.
|
from opentelemetry.ext.dbapi import trace_integration | ||
|
||
|
||
# Ex: mysql.connector | ||
trace_integration(tracer(), mysql.connector, "connect", "mysql") | ||
trace_integration(tracer_source(), mysql.connector, "connect", "mysql") |
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.
Doesn't trace_integration
take in parameter type tracer
?
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.
Good catch, it looks like the dbapi
integration needs to be updated like the others in #301.
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 believe @hectorhdzg is addressing this in [#298]
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.
Nice, thanks!
* chore: add examples folder to lerna * fix: add private to package.json files in examples
Found a few examples that hadn't been updated to use
tracer_source()
instead of `tracer(), updating them here.Signed-off-by: Alex Boten aboten@lightstep.com