mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
The bridge had two delivery paths. A call scoped its Rust work to a sink of its own, which ran Python's log handlers on whichever thread logged, runtime workers included. Threads no call scoped fell back to a process-wide sink that took warnings and errors only and carried no request ids. Now the process-wide sink takes every event. A call opens a span that carries its session and trace ids, so an event anywhere inside the call is delivered with them. An event on a runtime task goes through the bounded queue and is delivered from the blocking pool, and an event on any other thread, such as the Python thread of a sync call, is delivered there and then. The level each Python logger takes is read when a call starts, in the same call into Python that reads the request ids, so no thread asks Python for a level while it logs. |
||
|---|---|---|
| .. | ||
| host | ||
| messages | ||
| ocr | ||
| trace | ||
| __init__.py | ||
| AGENTS.md | ||
| native_route_wheel_test.py | ||
| stubtest.ini | ||
| test_bindings.py | ||
| test_catalog.py | ||
| test_clickhouse.py | ||
| test_configuration.py | ||
| test_detectors.py | ||
| test_execution.py | ||
| test_failures.py | ||
| test_fork_guard.py | ||
| test_logger.py | ||
| test_public_call.py | ||
| test_runtime.py | ||
| test_token_counter.py | ||
| test_tokenizer.py | ||
| test_verify_linux_native_wheel.py | ||