This repository was archived by the owner on Jun 16, 2025. It is now read-only.
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
[azure exporter] Manual flushing of Tracer exporter #1203
Open
Description
Is your feature request related to a problem?
When running in specific contexts, e.g. databricks; the atexit flush is not reliable. It only flushes the spans around 60% of the time.
Describe the solution you'd like.
I would like to be able to manually flush the tracer exporter to ensure my spans are exported before letting my application exit.
Describe alternatives you've considered.
tracer.finish() - Will not block until flushing has occured
Retrieving active exporter threads and stopping them; thread.stop(timeout=x)
Calling private _stop method on the tracer.exporter
Additional context.
Discussed here