litellm/scripts/lens_assets/fixtures/traces/google_adk_stream.json
moe-berri 22ad3c5fff
refactor(lens): connect LiteLLM to the independent Lens service (#45529)
* feat(lens): consume the independent Lens service and shared UI

* fix(lens): keep embedded setup stable and vendor UI before builds

* chore(lens): pin embedded UI provenance to published Lens source

* fix(lens): complete embedded UI extraction across CI builds

* docs(lens): record latest main and removal-boundary validation

* fix(lens): wire external chart credentials and ingestion modes

* test(lens): cover adapter failures and fix extraction CI

* docs(lens): refresh bundled chart setup instructions

* test(lens): restore gateway adapter test package marker

* build(lens): pin clean-cut UI and supported storage chart

* test(ui): await guardrail scope menu before checking options

* perf(lens): omit unused trace-team lookup from product requests

* docs(lens): record final-image adapter permission checks

* test(lens): assert delegated investigation authorization

* refactor(lens): remove copied trace runtime and preserve spend logging

* test(lens): verify independent gateway image upgrades and outages

* test(lens): pin the chart qualification database image

* fix(lens): update embedded UI metadata filters

* test: wait for Lens chart pod identity convergence

* fix(e2e): select Lens chart pods by deployment ownership

* fix(e2e): select Helm migration ownership for Lens upgrades

* test(lens): retain migration Jobs through rollout assertions

* docs(helm): require existing database for migration hooks

* test(lens): qualify release boundaries with embedded navigation update

* docs(lens): record browser qualification for embedded tabs

* fix(lens): remove unrelated CI and guardrail test changes

* test(lens): give qualification tenants unique key aliases

* feat(lens): embed the latest canonical Lens interface

* fix(lens): qualify split inference through the gateway

* fix(lens): preserve scoped auth and isolate delegated credentials

* chore(lens): remove unrelated documentation and lint changes

* fix(lens): bound concurrent forwarding buffers through response delivery

* fix(lens): preserve OAuth2 dispatch without inference policies

* chore(lens): adopt current shared onboarding UI

* fix(lens): refresh shared setup UI and review context

* fix(lens): bound uploads before gateway authentication

* docs(lens): remove extraction evidence from the gateway repo

* docs(lens): refresh shared setup prompt for paired releases
2026-10-09 16:17:05 -07:00

480 lines
20 KiB
JSON

{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "python"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.42.1"
}
},
{
"key": "telemetry.auto.version",
"value": {
"stringValue": "0.63b1"
}
},
{
"key": "service.name",
"value": {
"stringValue": "unknown_service"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "litellm.gateway.client"
},
"spans": [
{
"traceId": "59fb70ffc358dfe30a5e0d4615e4ca7f",
"spanId": "fc3bcda50363d82c",
"parentSpanId": "90b23ff6b4199a4b",
"name": "gateway.request",
"kind": 3,
"startTimeUnixNano": "1791061463015671000",
"endTimeUnixNano": "1791061465614543000",
"attributes": [
{
"key": "litellm.gateway.attempt",
"value": {
"boolValue": true
}
},
{
"key": "http.request.method",
"value": {
"stringValue": "POST"
}
},
{
"key": "url.full",
"value": {
"stringValue": "http://localhost:4002/v1/chat/completions"
}
},
{
"key": "server.address",
"value": {
"stringValue": "localhost"
}
},
{
"key": "http.response.status_code",
"value": {
"intValue": "200"
}
},
{
"key": "litellm.call_id",
"value": {
"stringValue": "73d0b177-86e5-4e11-9704-bff2667a0a75"
}
}
],
"status": {},
"flags": 256
}
]
},
{
"scope": {
"name": "openinference.instrumentation.google_adk",
"version": "1.0.2"
},
"spans": [
{
"traceId": "59fb70ffc358dfe30a5e0d4615e4ca7f",
"spanId": "90b23ff6b4199a4b",
"parentSpanId": "a8c9e8a324ce58ff",
"name": "call_llm",
"kind": 1,
"startTimeUnixNano": "1791061461482820000",
"endTimeUnixNano": "1791061465621507000",
"attributes": [
{
"key": "session.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "user.id",
"value": {
"stringValue": "debug_user_id"
}
},
{
"key": "gen_ai.operation.name",
"value": {
"stringValue": "generate_content"
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "research_agent"
}
},
{
"key": "gen_ai.conversation.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "gen_ai.system",
"value": {
"stringValue": "gcp.vertex.agent"
}
},
{
"key": "gen_ai.request.model",
"value": {
"stringValue": "openai/openai/gpt-6-luna"
}
},
{
"key": "gcp.vertex.agent.invocation_id",
"value": {
"stringValue": "e-135e3af9-1874-442b-a1f3-d0601dd85c31"
}
},
{
"key": "gcp.vertex.agent.session_id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "a4c320a1-6fae-4364-9978-5082db9799ef"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{\"model\": \"openai/openai/gpt-6-luna\", \"config\": {\"system_instruction\": \"You are an agent. Your internal name is \\\"research_agent\\\".\", \"labels\": {\"adk_agent_name\": \"research_agent\"}}, \"contents\": [{\"parts\": [{\"text\": \"What is an agent trace?\"}], \"role\": \"user\"}]}"
}
},
{
"key": "gcp.vertex.agent.llm_response",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a record of an AI agent\u2019s execution: what it received, the actions it took (such as tool calls), the results it got back, and how the task ended.\\n\\nTraces help developers debug failures, understand behavior, and evaluate performance. They may include timestamps, inputs and outputs, tool errors, or state changes. A trace doesn\u2019t have to include the model\u2019s private reasoning; it can record only observable steps.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":184,\"prompt_token_count\":29,\"thoughts_token_count\":84,\"total_token_count\":213}}"
}
},
{
"key": "gen_ai.usage.input_tokens",
"value": {
"intValue": "29"
}
},
{
"key": "gen_ai.usage.output_tokens",
"value": {
"intValue": "268"
}
},
{
"key": "gen_ai.usage.cache_read.input_tokens",
"value": {
"intValue": "0"
}
},
{
"key": "gen_ai.usage.reasoning.output_tokens",
"value": {
"intValue": "84"
}
},
{
"key": "gen_ai.response.finish_reasons",
"value": {
"arrayValue": {
"values": [
{
"stringValue": "stop"
}
]
}
}
},
{
"key": "llm.provider",
"value": {
"stringValue": "google"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"model\":\"openai/openai/gpt-6-luna\",\"contents\":[{\"parts\":[{\"text\":\"What is an agent trace?\"}],\"role\":\"user\"}],\"config\":{\"system_instruction\":\"You are an agent. Your internal name is \\\"research_agent\\\".\",\"labels\":{\"adk_agent_name\":\"research_agent\"}},\"live_connect_config\":{\"input_audio_transcription\":{},\"output_audio_transcription\":{}}}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"system_instruction\":\"You are an agent. Your internal name is \\\"research_agent\\\".\",\"labels\":{\"adk_agent_name\":\"research_agent\"}}"
}
},
{
"key": "llm.input_messages.0.message.role",
"value": {
"stringValue": "system"
}
},
{
"key": "llm.input_messages.0.message.content",
"value": {
"stringValue": "You are an agent. Your internal name is \"research_agent\"."
}
},
{
"key": "llm.input_messages.1.message.role",
"value": {
"stringValue": "user"
}
},
{
"key": "llm.input_messages.1.message.contents.0.message_content.text",
"value": {
"stringValue": "What is an agent trace?"
}
},
{
"key": "llm.input_messages.1.message.contents.0.message_content.type",
"value": {
"stringValue": "text"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a record of an AI agent\u2019s execution: what it received, the actions it took (such as tool calls), the results it got back, and how the task ended.\\n\\nTraces help developers debug failures, understand behavior, and evaluate performance. They may include timestamps, inputs and outputs, tool errors, or state changes. A trace doesn\u2019t have to include the model\u2019s private reasoning; it can record only observable steps.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":184,\"prompt_token_count\":29,\"thoughts_token_count\":84,\"total_token_count\":213}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "213"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "29"
}
},
{
"key": "llm.token_count.completion_details.reasoning",
"value": {
"intValue": "84"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "184"
}
},
{
"key": "llm.output_messages.0.message.role",
"value": {
"stringValue": "model"
}
},
{
"key": "llm.output_messages.0.message.contents.0.message_content.text",
"value": {
"stringValue": "An **agent trace** is a record of an AI agent\u2019s execution: what it received, the actions it took (such as tool calls), the results it got back, and how the task ended.\n\nTraces help developers debug failures, understand behavior, and evaluate performance. They may include timestamps, inputs and outputs, tool errors, or state changes. A trace doesn\u2019t have to include the model\u2019s private reasoning; it can record only observable steps."
}
},
{
"key": "llm.output_messages.0.message.contents.0.message_content.type",
"value": {
"stringValue": "text"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "59fb70ffc358dfe30a5e0d4615e4ca7f",
"spanId": "a8c9e8a324ce58ff",
"parentSpanId": "3f575c3cdbccf331",
"name": "agent_run [research_agent]",
"kind": 1,
"startTimeUnixNano": "1791061461465979000",
"endTimeUnixNano": "1791061465621633000",
"attributes": [
{
"key": "agent.name",
"value": {
"stringValue": "research_agent"
}
},
{
"key": "session.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "user.id",
"value": {
"stringValue": "debug_user_id"
}
},
{
"key": "gen_ai.operation.name",
"value": {
"stringValue": "invoke_agent"
}
},
{
"key": "gen_ai.agent.description",
"value": {
"stringValue": ""
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "research_agent"
}
},
{
"key": "gen_ai.conversation.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a record of an AI agent\u2019s execution: what it received, the actions it took (such as tool calls), the results it got back, and how the task ended.\\n\\nTraces help developers debug failures, understand behavior, and evaluate performance. They may include timestamps, inputs and outputs, tool errors, or state changes. A trace doesn\u2019t have to include the model\u2019s private reasoning; it can record only observable steps.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":184,\"prompt_token_count\":29,\"thoughts_token_count\":84,\"total_token_count\":213},\"invocation_id\":\"e-135e3af9-1874-442b-a1f3-d0601dd85c31\",\"author\":\"research_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"research_agent@1\"},\"id\":\"a4c320a1-6fae-4364-9978-5082db9799ef\",\"timestamp\":1791061465.604408}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "AGENT"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "59fb70ffc358dfe30a5e0d4615e4ca7f",
"spanId": "3f575c3cdbccf331",
"name": "invocation [research_app]",
"kind": 1,
"startTimeUnixNano": "1791061461360524000",
"endTimeUnixNano": "1791061465621830000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"user_id\": \"debug_user_id\", \"session_id\": \"debug_session_id\", \"invocation_id\": null, \"new_message\": {\"parts\": [{\"text\": \"What is an agent trace?\"}], \"role\": \"user\"}, \"state_delta\": null, \"run_config\": {\"save_input_blobs_as_artifacts\": false, \"support_cfc\": false, \"streaming_mode\": \"StreamingMode.SSE\", \"output_audio_transcription\": {}, \"input_audio_transcription\": {}, \"save_live_blob\": false, \"save_live_audio\": false, \"max_llm_calls\": 500, \"include_thoughts_from_other_agents\": false}, \"yield_user_message\": false, \"abort_signal\": null}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "user.id",
"value": {
"stringValue": "debug_user_id"
}
},
{
"key": "session.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a record of an AI agent\u2019s execution: what it received, the actions it took (such as tool calls), the results it got back, and how the task ended.\\n\\nTraces help developers debug failures, understand behavior, and evaluate performance. They may include timestamps, inputs and outputs, tool errors, or state changes. A trace doesn\u2019t have to include the model\u2019s private reasoning; it can record only observable steps.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":184,\"prompt_token_count\":29,\"thoughts_token_count\":84,\"total_token_count\":213},\"invocation_id\":\"e-135e3af9-1874-442b-a1f3-d0601dd85c31\",\"author\":\"research_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"research_agent@1\"},\"id\":\"a4c320a1-6fae-4364-9978-5082db9799ef\",\"timestamp\":1791061465.604408}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
}
]
}
]
}
]
}