forked from phoenix/litellm-mirror
[Feat] Improve OTEL Tracking - Require all Redis Cache reads to be logged on OTEL (#5881)
* fix use previous internal usage caching logic * fix test_dual_cache_uses_redis * redis track event_metadata in service logging * show otel error on _get_parent_otel_span_from_kwargs * track parent otel span on internal usage cache * update_request_status * fix internal usage cache * fix linting * fix test internal usage cache * fix linting error * show event metadata in redis set * fix test_get_team_redis * fix test_get_team_redis * test_proxy_logging_setup
This commit is contained in:
parent
4ec4d02474
commit
7cbcf538c6
9 changed files with 243 additions and 79 deletions
|
@ -753,10 +753,10 @@ async def test_team_update_redis():
|
|||
litellm.proxy.proxy_server, "proxy_logging_obj"
|
||||
)
|
||||
|
||||
proxy_logging_obj.internal_usage_cache.redis_cache = RedisCache()
|
||||
proxy_logging_obj.internal_usage_cache.dual_cache.redis_cache = RedisCache()
|
||||
|
||||
with patch.object(
|
||||
proxy_logging_obj.internal_usage_cache.redis_cache,
|
||||
proxy_logging_obj.internal_usage_cache.dual_cache.redis_cache,
|
||||
"async_set_cache",
|
||||
new=AsyncMock(),
|
||||
) as mock_client:
|
||||
|
@ -782,10 +782,10 @@ async def test_get_team_redis(client_no_auth):
|
|||
litellm.proxy.proxy_server, "proxy_logging_obj"
|
||||
)
|
||||
|
||||
proxy_logging_obj.internal_usage_cache.redis_cache = RedisCache()
|
||||
proxy_logging_obj.internal_usage_cache.dual_cache.redis_cache = RedisCache()
|
||||
|
||||
with patch.object(
|
||||
proxy_logging_obj.internal_usage_cache.redis_cache,
|
||||
proxy_logging_obj.internal_usage_cache.dual_cache.redis_cache,
|
||||
"async_get_cache",
|
||||
new=AsyncMock(),
|
||||
) as mock_client:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue