litellm/litellm/scripts
Kerry Lu bd1c3968f4
feat(proxy): send gateway model calls to Lens as traces when the Lens store is connected (#53042)
* 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>
2026-11-20 10:12:08 -08:00
..
adaptive_router_demo
ci_cd
db
githooks
health_check chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
lens_assets
trace_codegen feat(proxy): send gateway model calls to Lens as traces when the Lens store is connected (#53042) 2026-11-20 10:12:08 -08:00
auto-close-duplicates.test.ts
auto-close-duplicates.ts
benchmark_anthropic_messages_perf.py
benchmark_chat_completions_perf.py
benchmark_mock.py
benchmark_model_response_creator.py
benchmark_ocr_callbacks.py
benchmark_proxy_vs_provider.py
benchmark_streaming_chunk_overhead.py
build_core_distribution.py fix(packaging): ship the license public key in the litellm-proxy sdist (#52970) 2026-11-19 23:18:32 +00:00
check_mcp_operation_boundary.py
check_mcp_sdk_install.py
check_openapi_docs.py feat(proxy): support Cursor CLI subscriptions (#52205) 2026-11-16 21:49:12 -08:00
check_schema_compatibility.py feat(proxy): customer budget rollup, reset on the budget row's window, named templates, team overrides, multi-window limits and pause_allow_increase (#51582) 2026-11-13 16:05:35 +00:00
check_test_quality.py
check_type_discipline.py
classify-issue.test.ts
classify-issue.ts
comment-fixed-issue.test.ts
comment-fixed-issue.ts
create_litellm_branch.ps1
create_litellm_branch.sh
create_team_key_and_submit_guardrail.sh
default_branch.py
eval_compression.py
flag-duplicate-issue.test.ts
flag-duplicate-issue.ts
gate_slot_lock.py
generate_provider_endpoints_support.py
generate_trace_types.py feat(proxy): send gateway model calls to Lens as traces when the Lens store is connected (#53042) 2026-11-20 10:12:08 -08:00
install-cli.sh
install.sh chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
install_git_hooks.sh
issue-labels.ts
label-issue.test.ts
label-issue.ts
lint_base_counts.py
mock_bedrock_passthrough_target.py
mock_grayswan_timeout_server.py
mutation_report.py
openapi_docs_gate.py
pre_commit_lint.sh
prisma_generate_if_needed.py
quickstart.ps1
quickstart.sh
ruff_strict_gate.py
seed_request_logs.py
seed_tracing_fixtures.py feat(proxy): send gateway model calls to Lens as traces when the Lens store is connected (#53042) 2026-11-20 10:12:08 -08:00
sync-issue-labels.test.ts
sync-issue-labels.ts
test_agent_mcp_endpoints.sh
test_guardrails_register_endpoints.sh
test_quality_gate.py
test_tool_allowlist_script.py
tpm_headline_test.sh
type_check_gate.py ci: fit the pull request gate into five minutes (#52660) 2026-11-18 14:41:04 -08:00
type_discipline_gate.py
verify_adaptive_router.py
with_dashboard_node.sh