-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[tracing] updating to opentelemetry 1.0.0-rc.0 #14208
[tracing] updating to opentelemetry 1.0.0-rc.0 #14208
Conversation
This pull request is protected by Check Enforcer. What is Check Enforcer?Check Enforcer helps ensure all pull requests are covered by at least one check-run (typically an Azure Pipeline). When all check-runs associated with this pull request pass then Check Enforcer itself will pass. Why am I getting this message?You are getting this message because Check Enforcer did not detect any check-runs being associated with this pull request within five minutes. This may indicate that your pull request is not covered by any pipelines and so Check Enforcer is correctly blocking the pull request being merged. What should I do now?If the check-enforcer check-run is not passing and all other check-runs associated with this PR are passing (excluding license-cla) then you could try telling Check Enforcer to evaluate your pull request again. You can do this by adding a comment to this pull request as follows: What if I am onboarding a new service?Often, new services do not have validation pipelines associated with them, in order to bootstrap pipelines for a new service, you can issue the following command as a pull request comment: |
0037703
to
c21cba5
Compare
/azp run js - communication-sms - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - storage-file-datalake - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - storage-file-share - tests |
/azp run js - storage-queue - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
2 similar comments
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - attestation - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - container-registry - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
NOTE - the failures that have occurred so far (metricsadvisor and mixedreality) appear to be related to some DNS issues we're having in our agents. The tests have completed, it's the Analyze phase that's failing. |
/azp run js - metricsadvisor - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - mixedreality - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
There are issues with the |
Okay, to sum up:
I'm going to bypass checkenforcer (since it's stuck now on the containre-registry failures) and merge this in. CC: @ramya-rao-a |
/check-enforcer override |
* Upgrading to opentelemetry 1.0.0 (rc.0) Did a few things that made this MUCH easier. Now that everyone is using the createSpan from @azure/core-tracing we no longer need _every_ project to reference opentelemetry/api! That has been removed as part of this PR. Unfortunately, the leaky nature of JS means that packages still need to worry about opentelemetry when they build their browser bundle for testing. To make that simpler I've added a common function to dev-tool that everyone can call in their rollup that will give them the correct named exports. This is hooked up for everyone at this point, so the next time something like this happens I should be able to control it centrally. Now for the API breaking changes that I had to fix: - CanonicalCode is gone and is replaced with SpanStatusCode. SpanStatusCode has a much smaller set of codes (literally: ERROR, OK or UNSET) so that simplified most of the way we were handling setting a span status on error. - There is a new field (`tracingContext`) that contains `Context`. You now pass a context, not a span, to indicate what your "parent" is. You'll see this where I've removed `SpanOptions.parentSpan`. Mostly it's a simple replacement.
This PR does the final leg of updating our code base to opentelemetry 1.0.0-rc.0, which has been done in pieces with #14094, #14082, #13951, #13949 and #13942.
This PR looks deceptively big but in reality it's just a few similar changes, but applied across a lot of projects. The three areas that you'll care about:
opentelemetry/api
rollup configuration. This is setup for everyone at this point, so if future things come up this should be easier (hopefully).azure/identity
also got updated in all packagesdevDependencies
so we don't have to deal with mixed versions of OTel in every package.CanonicalCode
->SpanStatusCode
changes (mostly squashing CanonicalCode into SpanStatusCode.ERROR)createSpan
and thus needed slight updates to create and pass a context.(unresolved, future PR) SpanStatusCode.OK no longer lines up with the 'default' value so spans that do not have span.setSpanStatus(SpanStatusCode.OK) set on them will default to UNSET instead. We should be able to fix this centrally but that is not in this PR.