Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Add support to GlobalTracer to indicate if a tracer has been registered #201

Merged
merged 3 commits into from
Nov 29, 2018

Conversation

MikeGoldsmith
Copy link
Member

This helps to identify if the global tracer is using the default NoopTracer or has had a tracer registered. This is useful for integration libraries to determine if they can/should set a tracer or use the configured global tracer.

This was first discussed in opentracing/opentracing-csharp#113

globaltracer.go Outdated Show resolved Hide resolved
@yurishkuro
Copy link
Member

I am trying to fix the build in #202

@yurishkuro
Copy link
Member

please rebase off master to fix the build. also, please add a unit test.

@MikeGoldsmith
Copy link
Member Author

@yurishkuro I've added unit tests for GlobalTracer

@codecov-io
Copy link

Codecov Report

Merging #201 into master will increase coverage by 0.58%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #201      +/-   ##
==========================================
+ Coverage   58.74%   59.32%   +0.58%     
==========================================
  Files          14       14              
  Lines         829      831       +2     
==========================================
+ Hits          487      493       +6     
+ Misses        302      298       -4     
  Partials       40       40
Impacted Files Coverage Δ
globaltracer.go 60% <80%> (+60%) ⬆️

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 f6bb0d0...0a9f187. Read the comment docs.

@yurishkuro
Copy link
Member

@austinlparker second pair of eyes

Copy link
Member

@austinlparker austinlparker left a comment

Choose a reason for hiding this comment

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

👍

@yurishkuro yurishkuro merged commit 8b5a441 into master Nov 29, 2018
@MikeGoldsmith MikeGoldsmith deleted the registered-global-tracer branch November 29, 2018 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants