litellm/tests/unit/redis
yujonglee 9f5f234499
fix(rust_bridge): send warnings from unscoped native threads to the proxy log (#53539)
A tracing event reached the Python logger only on a thread a call had scoped.
A detached task on the Rust runtime has no scoped dispatch, so its warnings
were dropped. The failed auth cache invalidation publish was one of them, and
the integration test that waits for that warning never converged.

The extension now installs a process-wide sink when it loads. It takes
warnings and errors from LiteLLM targets on any thread no call scoped and
logs them without request correlation. Records from runtime threads go
through a bounded queue to one task that delivers them from the blocking
pool, so a slow log handler costs lines and never an async worker. A full
queue drops records and reports how many.

The failed publish warning also quotes and escapes its cache key so it stays
on one line.
2026-11-23 17:53:52 +09:00
..
stores fix(rust_bridge): send warnings from unscoped native threads to the proxy log (#53539) 2026-11-23 17:53:52 +09:00
__init__.py