litellm/tests/unit/integrations/arize
Yuneng Jiang b561d78b9b
fix(proxy): flush OpenTelemetry spans at proxy shutdown
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
2026-11-07 17:00:12 -08:00
..
__init__.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_arize.py fix(proxy): flush OpenTelemetry spans at proxy shutdown 2026-11-07 17:00:12 -08:00
test_arize_health_check.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_arize_otel_coexistence.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_arize_phoenix.py fix(proxy): flush OpenTelemetry spans at proxy shutdown 2026-11-07 17:00:12 -08:00
test_arize_utils.py fix(anthropic)!: do not surface server_tool_use as client tool_calls (#48385) 2026-11-06 03:54:34 -08:00