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

Document GlobalTracer in opentracing-util #132

Merged
merged 3 commits into from
May 11, 2017

Conversation

sjoerdtalsma
Copy link
Contributor

The opentracing-contrib/java-globaltracer repo had a README explaining the GlobalTracer.
Although the JavaDoc was moved along with the code to opentracing-util, the README hadn't yet been copied.

@sjoerdtalsma
Copy link
Contributor Author

@bhs Any chance of this getting merged? I thought a add-README PR wouldn't be a big deal, but didn't want to nag you since you were on more important matters 😉

Once initialized, all application code can instrument tracing by starting new spans like:

```java
try (Span span = GlobalTracer.get().buildSpan("someOperation").start()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since #115 is in, I guess we ought to use startActive() in examples... feels a little premature, but better to be consistent at master.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally agree about this one.

@bhs
Copy link
Contributor

bhs commented May 11, 2017

@sjoerdtalsma sorry for the delay, I missed this entirely. I have the one nit but otherwise LGTM.

@bhs
Copy link
Contributor

bhs commented May 11, 2017

... and nagging me is always fine (encouraged, actually).

Copy link
Contributor

@bhs bhs left a comment

Choose a reason for hiding this comment

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

Thanks!

@bhs bhs merged commit b6c51a6 into opentracing:master May 11, 2017
@sjoerdtalsma sjoerdtalsma deleted the patch-1 branch May 12, 2017 14:10
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.

2 participants