Files
spring-cloud-sleuth/spring-cloud-sleuth-autoconfigure
Marcin Grzejszczak 5ea63f6f8c Adding span flushing on shutdown hook (#2036)
without this change when batch process finishes the async reporter doesn't have time to properly shutdown and send out spans to Zipkin.
with this change we're registering a shutdown hook. AsyncReporter has no option to send out spans in a blocking way, so what we need to do to flush it, then wait for the configured time for the spans to be drained from the queue and then give a chance to send the spans out over the wire.

fixes gh-2035
2021-10-08 10:53:15 +02:00
..
2021-10-01 19:38:52 +00:00