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

Updating examples to use tracer_source #360

Merged
merged 1 commit into from
Jan 20, 2020

Conversation

codeboten
Copy link
Contributor

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

Signed-off-by: Alex Boten <aboten@lightstep.com>
@codeboten codeboten requested a review from a team January 9, 2020 19:05
@codecov-io
Copy link

codecov-io commented Jan 9, 2020

Codecov Report

Merging #360 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a89bbc8...759e738. Read the comment docs.

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")
Copy link
Contributor

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?

Copy link
Member

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.

Copy link
Contributor

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]

Copy link
Member

@toumorokoshi toumorokoshi left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@toumorokoshi toumorokoshi merged commit 3883e0a into open-telemetry:master Jan 20, 2020
@codeboten codeboten deleted the fix-doc-issue branch October 9, 2020 18:50
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this pull request Nov 1, 2020
* chore: add examples folder to lerna

* fix: add private to package.json files in examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants