Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

jaeger-client-java does not automatically flush when program exits #544

Closed
ackerleytng opened this issue Sep 4, 2018 · 0 comments · Fixed by #546
Closed

jaeger-client-java does not automatically flush when program exits #544

ackerleytng opened this issue Sep 4, 2018 · 0 comments · Fixed by #546

Comments

@ackerleytng
Copy link

Requirement

I was trying to get the opentracing tutorial to work with the latest version of jaeger-client-java and it wasn't flushing the span to the jaeger server

Problem

The span is not getting flushed to the jaeger server

Please see line 36/37 of
https://github.com/ackerleytng/opentracing-tutorial-debug/blob/master/java/src/main/java/lesson01/exercise/Hello.java

Proposal

@jpkrohling suggested registering the tracer with a shutdown hook, to flush it when the JVM goes down

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants