Skip to content

Commit 96d1b92

Browse files
committed
fix(client): flush on shutdown
1 parent a139e19 commit 96d1b92

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

langfuse/_client/resource_manager.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,7 @@ def shutdown(self) -> None:
415415
# Unregister the atexit handler first
416416
atexit.unregister(self.shutdown)
417417

418-
if self.tracer_provider is not None and not isinstance(
419-
self.tracer_provider, otel_trace_api.ProxyTracerProvider
420-
):
421-
self.tracer_provider.force_flush()
422-
418+
self.flush()
423419
self._stop_and_join_consumer_threads()
424420

425421

0 commit comments

Comments
 (0)