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

Migrate usage of gRPC context to OTel context. #1751

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Oct 5, 2020

Merging should be held off until next release to give this code some time to bake in snapshots but sending it out now.

Fixes #575

@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

Merging #1751 into master will increase coverage by 0.34%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1751      +/-   ##
============================================
+ Coverage     85.21%   85.56%   +0.34%     
- Complexity     1351     1354       +3     
============================================
  Files           166      165       -1     
  Lines          5276     5265      -11     
  Branches        549      549              
============================================
+ Hits           4496     4505       +9     
+ Misses          577      560      -17     
+ Partials        203      200       -3     
Impacted Files Coverage Δ Complexity Δ
...o/opentelemetry/baggage/DefaultBaggageManager.java 61.11% <ø> (ø) 6.00 <0.00> (ø)
...ain/java/io/opentelemetry/trace/DefaultTracer.java 97.14% <ø> (ø) 5.00 <0.00> (ø)
api/src/main/java/io/opentelemetry/trace/Span.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
...ntelemetry/trace/propagation/HttpTraceContext.java 96.46% <ø> (ø) 32.00 <0.00> (ø)
...context/propagation/DefaultContextPropagators.java 97.05% <ø> (ø) 3.00 <0.00> (ø)
...xtensions/trace/propagation/AwsXRayPropagator.java 87.20% <ø> (ø) 26.00 <0.00> (ø)
...try/extensions/trace/propagation/B3Propagator.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
...pagation/B3PropagatorExtractorMultipleHeaders.java 100.00% <ø> (ø) 8.00 <0.00> (ø)
...propagation/B3PropagatorExtractorSingleHeader.java 84.61% <ø> (ø) 8.00 <0.00> (ø)
...opagation/B3PropagatorInjectorMultipleHeaders.java 100.00% <ø> (ø) 4.00 <0.00> (ø)
... and 17 more

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 21fbb36...7298287. Read the comment docs.

In-process propagation leverages [gRPC Context](https://grpc.github.io/grpc-java/javadoc/io/grpc/Context.html),
a well established context propagation library, contained in a small artifact, which is non-dependent on the
entire gRPC engine.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth replacing this with a comment about our own context implementation, rather than just deleting it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure how to phrase it. I read this sentence as justifying the external dependency because it is "a small artifact, which is non-dependent on the entire gRPC engine." for people that might worry about that, rather than anything particularly interesting. Let me know if you have any suggestion on how to replace this, I'll put it in.

Copy link
Contributor

Choose a reason for hiding this comment

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

it's fine for now. I was just wondering if people might be interested in how our in-process propagation was implemented.

Copy link
Contributor

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

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

:shipit:

@jkwatson
Copy link
Contributor

jkwatson commented Oct 7, 2020

Merging! 🎉

@jkwatson jkwatson merged commit fd49b3f into open-telemetry:master Oct 7, 2020
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.

remove grpc-context dependency from the api package
3 participants