mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-01 01:18:34 +00:00
Under uvicorn workers a worker re-raises SIGTERM after lifespan shutdown, so atexit never runs and a TracerProvider's BatchSpanProcessor never flushes. Spans that ended in the last batch interval were lost on every restart or scale-down. proxy_shutdown_event now force-flushes every tracer provider the OpenTelemetry loggers own, the legacy and V2 default providers plus their credential-scoped and tenant caches, within one 10s deadline, the same way it already flushes Langfuse ArizeLogger now records its private provider in _tracer_provider so the base flush reaches it, and ArizePhoenixLogger.flush_tracer_providers takes the timeout and reports whether it flushed |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_arize.py | ||
| test_arize_health_check.py | ||
| test_arize_otel_coexistence.py | ||
| test_arize_phoenix.py | ||
| test_arize_utils.py | ||