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

Extended tracer #6017

Merged
merged 21 commits into from Dec 7, 2023
Merged

Extended tracer #6017

merged 21 commits into from Dec 7, 2023

Conversation

zeitlinger
Copy link
Member

@zeitlinger zeitlinger commented Nov 27, 2023

Resolves #4610

@zeitlinger zeitlinger requested a review from a team as a code owner November 27, 2023 12:58
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (f9e0acb) 91.17% compared to head (f99f7ed) 91.18%.
Report is 22 commits behind head on main.

Files Patch % Lines
...ubator/propagation/ExtendedContextPropagators.java 72.22% 2 Missing and 3 partials ⚠️
...sion/incubator/propagation/CaseInsensitiveMap.java 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6017      +/-   ##
============================================
+ Coverage     91.17%   91.18%   +0.01%     
- Complexity     5613     5694      +81     
============================================
  Files           616      628      +12     
  Lines         16564    16674     +110     
  Branches       1642     1643       +1     
============================================
+ Hits          15102    15205     +103     
- Misses         1013     1015       +2     
- Partials        449      454       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zeitlinger
Copy link
Member Author

Thanks a lot for the detailed review @jack-berg!

Let me recap the history of this feature:

  1. all static methods
  2. after some discussion, OpenTelemetry and Tracer were injected
  3. when moving this PR here, I added implements Tracer
  4. removing OpenTelemetry as instance again would affect five public methods that are related to propagation - but that's fine for me

Once we've agreed on this approach, I'll implement all requested changes.

@jack-berg
Copy link
Member

This would resolve #4610, correct @zeitlinger?

zeitlinger and others added 8 commits December 1, 2023 17:59
- use factory method instead of ctor
- remove getTextMapPropagationContext from ExtendedTracer as it was only delegating
…incubator/trace/SpanCallback.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
- return unmodifiable map
@zeitlinger
Copy link
Member Author

zeitlinger commented Dec 1, 2023

@jack-berg I hope I've incorporated every feedback as intended. I'll update the usage examples once you've confirmed.

Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

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

Just a couple of additional comments. I'm aligned at this point.

zeitlinger and others added 3 commits December 7, 2023 20:55
…incubator/trace/ExtendedSpanBuilder.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
@jack-berg jack-berg merged commit 2b33f9f into open-telemetry:main Dec 7, 2023
18 checks passed
@zeitlinger zeitlinger deleted the extended-tracer branch December 8, 2023 06:32
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.

Tracing utilities
3 participants