Skip to content

Updating examples to use tracer_source#360

Merged
toumorokoshi merged 1 commit intoopen-telemetry:masterfrom
codeboten:fix-doc-issue
Jan 20, 2020
Merged

Updating examples to use tracer_source#360
toumorokoshi merged 1 commit intoopen-telemetry:masterfrom
codeboten:fix-doc-issue

Conversation

@codeboten
Copy link
Copy Markdown
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
Copy Markdown

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.


# Ex: mysql.connector
trace_integration(tracer(), mysql.connector, "connect", "mysql")
trace_integration(tracer_source(), mysql.connector, "connect", "mysql")
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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