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

chore: use WebTracerProvider instead of WebTracer in docs #1696

Merged

Conversation

bradfrosty
Copy link
Contributor

Which problem is this PR solving?

I didn't make an issue, as it seemed simple enough. A few packages were using WebTracer as opposed to WebTracerProvider in their examples. It seems like this may have been removed from the exports in @opentelemetry/web (please correct me if wrong), so these examples are out of date. Regardless, there is some inconsistency.

Short description of the changes

Update examples to use WebTracerProvider and specify contextManager in the register() method as opposed to on instantiation of provider.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 24, 2020

CLA Signed

The committers are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Nov 24, 2020

Codecov Report

Merging #1696 (e5e57da) into master (ac686d4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1696   +/-   ##
=======================================
  Coverage   91.41%   91.41%           
=======================================
  Files         165      165           
  Lines        5053     5053           
  Branches     1044     1044           
=======================================
  Hits         4619     4619           
  Misses        434      434           

Copy link
Member

@obecny obecny left a comment

Choose a reason for hiding this comment

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

lgtm, thx

@obecny
Copy link
Member

obecny commented Nov 24, 2020

@bradfrosty pls sign the EasyCLA and then comment back on this PR

import { ZoneContextManager } from '@opentelemetry/context-zone';

const webTracerWithZone = new WebTracer({
const providerWithZone = new WebTracer();
Copy link
Member

Choose a reason for hiding this comment

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

provider

Copy link
Contributor Author

@bradfrosty bradfrosty Nov 30, 2020

Choose a reason for hiding this comment

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

  • change to provider

@bradfrosty
Copy link
Contributor Author

@obecny working to get the CLA signed on my end

@bradfrosty
Copy link
Contributor Author

@obecny signed! Good to merge?

@dyladan dyladan added the document Documentation-related label Dec 2, 2020
@dyladan dyladan merged commit 42187f2 into open-telemetry:master Dec 2, 2020
@bradfrosty bradfrosty deleted the bf/update-context-zone-docs branch December 2, 2020 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document Documentation-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants