litellm/tests/unit/integrations/s3_v2_golden
joshua-berri 053615f679
fix(caching): preserve otel cache hits and align logging metadata (#52971)
* fix(caching): keep the otel span out of the response cache key

The caching handler adds the request's parent_otel_span to the call kwargs. It
was not registered as a LiteLLM-owned kwarg, so with
enable_caching_on_provider_specific_optional_params on, the span repr (with a
new trace id per request) went into the cache key and the cache never hit.

Fixes #48712

* fix(logging): carry claude_subscription_usage through the Rust standard logging payload

#52901 added claude_subscription_usage to the standard logging metadata but
left the Rust litellm-standard-logging crate and the pinned logging fixtures
without it, so the S3 golden, GCS pub/sub, spend log and standard logging
document tests failed. Add the typed field to the Rust payload, a test that a
non-null value serializes the way Python logs it, and the null field to the
recorded fixtures.

---------

Co-authored-by: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com>
2026-11-19 16:25:26 -08:00
..
__init__.py feat(s3-log): replace the python s3_v2 logger with a rust callback (#51539) 2026-11-14 23:03:58 +00:00
python_s3_v2.json fix(caching): preserve otel cache hits and align logging metadata (#52971) 2026-11-19 16:25:26 -08:00