-
Notifications
You must be signed in to change notification settings - Fork 805
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
chore: use WebTracerProvider instead of WebTracer in docs #1696
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #1696 +/- ##
=======================================
Coverage 91.41% 91.41%
=======================================
Files 165 165
Lines 5053 5053
Branches 1044 1044
=======================================
Hits 4619 4619
Misses 434 434 |
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.
lgtm, thx
@bradfrosty pls sign the |
import { ZoneContextManager } from '@opentelemetry/context-zone'; | ||
|
||
const webTracerWithZone = new WebTracer({ | ||
const providerWithZone = new WebTracer(); |
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.
provider
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.
- change to provider
@obecny working to get the CLA signed on my end |
04b9202
to
b0845fd
Compare
b0845fd
to
e5e57da
Compare
@obecny signed! Good to merge? |
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 toWebTracerProvider
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 specifycontextManager
in theregister()
method as opposed to on instantiation of provider.