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

Remove getCurrentContext and withSpan from Tracer #1809

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

bogdandrutu
Copy link
Member

Updates #1807

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@codecov
Copy link

codecov bot commented Oct 15, 2020

Codecov Report

Merging #1809 into master will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1809      +/-   ##
============================================
+ Coverage     84.58%   84.64%   +0.06%     
+ Complexity     1431     1427       -4     
============================================
  Files           177      177              
  Lines          5554     5550       -4     
  Branches        578      578              
============================================
  Hits           4698     4698              
+ Misses          649      646       -3     
+ Partials        207      206       -1     
Impacted Files Coverage Δ Complexity Δ
...ain/java/io/opentelemetry/trace/DefaultTracer.java 100.00% <ø> (ø) 3.00 <0.00> (-2.00)
api/src/main/java/io/opentelemetry/trace/Span.java 100.00% <ø> (ø) 5.00 <0.00> (ø)
...va/io/opentelemetry/trace/TracingContextUtils.java 100.00% <ø> (ø) 7.00 <0.00> (ø)
.../src/main/java/io/opentelemetry/context/Scope.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...ain/java/io/opentelemetry/sdk/trace/TracerSdk.java 100.00% <ø> (ø) 4.00 <0.00> (-2.00)
...pentelemetry/opentracingshim/ScopeManagerShim.java 81.81% <100.00%> (ø) 5.00 <2.00> (ø)
...lemetry/context/PersistentHashArrayMappedTrie.java 55.45% <0.00%> (+3.63%) 4.00% <0.00%> (ø%)

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 2d0f91b...1c9e742. Read the comment docs.

@bogdandrutu bogdandrutu reopened this Oct 15, 2020
@carlosalberto
Copy link
Contributor

LGTM. Now that this will be the official way, I feel like we should do a follow up to rename TracingContextUtils to something more friendly ;)

@bogdandrutu bogdandrutu reopened this Oct 15, 2020
@bogdandrutu bogdandrutu merged commit b73a063 into open-telemetry:master Oct 15, 2020
@bogdandrutu bogdandrutu deleted the rmtracerctx branch October 15, 2020 17:58
@Oberon00
Copy link
Member

Shouldn't we just move TracingContextUtils to static Span interface methods? Or even default Span interface methods where it makes sense.

@jkwatson
Copy link
Contributor

Shouldn't we just move TracingContextUtils to static Span interface methods? Or even default Span interface methods where it makes sense.

I think this is a topic of conversation in #1807

@jkwatson
Copy link
Contributor

I hate this change, by the way. It makes the Tracer into something silly and nearly useless. It should be called SpanFactory. :(

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.

5 participants