mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
* Send gateway model calls to Lens as traces when the Lens store is connected
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Sort the tracing runtime imports
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Compare the old Lens probe status against HTTPStatus so the type gate holds
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Parked: drop caller IP, isolate Lens config from OTEL env, shut down exporter, delivery test
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* feat(proxy): group gateway traces in Lens by session, name the agent and report tool calls as steps
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(proxy): keep metadata inherited from request baggage off Lens traces
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Revert "fix(proxy): keep metadata inherited from request baggage off Lens traces"
This reverts commit d23f0e628e.
* fix(proxy): send the caller IP to Lens as the OTel callback does, and satisfy the type discipline gate
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(proxy): deliver Lens traces in process instead of over a socket
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(proxy): compare the gateway Lens trace with a recorded Claude Code trace
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(proxy): check the tool results the provider receives in the Lens parity replay
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(proxy): keep one for clause per comprehension in the Lens delivery tests
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* refactor(proxy): send Lens traces to its trace route from one adapter module under integrations/lens
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* refactor(lens): move the gateway's Lens package from litellm/tracing to litellm/integrations/lens
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* refactor(clickhouse): keep the cost row types with the ClickHouse cost logger
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* refactor(lens): move the gateway's Lens routes and startup from litellm/proxy to litellm/integrations/lens/proxy
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* test(lens): keep one for clause per comprehension in the parity test
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
19 lines
604 B
Python
19 lines
604 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"settings,environ,enabled",
|
|
(
|
|
(None, {}, False),
|
|
({"store": {"type": "clickhouse"}}, {}, False),
|
|
({"store": {"type": "lens"}}, {}, True),
|
|
({"store": "lens"}, {}, False),
|
|
(None, {"LITELLM_LENS_URL": "http://lens"}, True),
|
|
),
|
|
)
|
|
def test_lens_enablement_requires_its_service_or_an_explicit_lens_store(
|
|
settings: object, environ: dict[str, str], enabled: bool
|
|
) -> None:
|
|
from litellm.integrations.lens.config import is_lens_tracing_enabled
|
|
|
|
assert is_lens_tracing_enabled(settings, environ) is enabled
|