The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
{
"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": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "5e60e01a836d9218",
"parentSpanId": "84134817e1e1d326",
"name": "gateway.request",
"kind": 3,
"startTimeUnixNano": "1791061411104557000",
"endTimeUnixNano": "1791061413564994000",
"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": "0b354cca-8ebd-4ce2-8d20-a67109726570"
}
}
],
"status": {},
"flags": 256
}
]
}
]
},
{
"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": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "8693505dfdf9312c",
"parentSpanId": "023640b2ddcf8e1f",
"name": "gateway.request",
"kind": 3,
"startTimeUnixNano": "1791061413582096000",
"endTimeUnixNano": "1791061422329850000",
"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": "5396505e-0b3f-49e0-8b27-ff344996f149"
}
}
],
"status": {},
"flags": 256
}
]
},
{
"scope": {
"name": "openinference.instrumentation.google_adk",
"version": "1.0.2"
},
"spans": [
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "023640b2ddcf8e1f",
"parentSpanId": "4e5e4d8c1b8bb5a6",
"name": "call_llm",
"kind": 1,
"startTimeUnixNano": "1791061413580533000",
"endTimeUnixNano": "1791061422331914000",
"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": "search_agent"
}
},
{
"key": "gen_ai.conversation.id",
"value": {
"stringValue": "62b52186-894b-420c-9c58-9f6b5e91f156"
}
},
{
"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-eca39f25-a450-4ae0-8e14-027b0cc04dc9"
}
},
{
"key": "gcp.vertex.agent.session_id",
"value": {
"stringValue": "62b52186-894b-420c-9c58-9f6b5e91f156"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "2ffe70db-86f6-4877-9549-267b38a0499a"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{\"model\": \"openai/openai/gpt-6-luna\", \"config\": {\"system_instruction\": \"List a few key facts about the question.\\n\\nYou are an agent. Your internal name is \\\"search_agent\\\". The description about you is \\\"Gathers key facts about the question.\\\".\", \"labels\": {\"adk_agent_name\": \"search_agent\"}}, \"contents\": [{\"parts\": [{\"text\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}], \"role\": \"user\"}]}"
}
},
{
"key": "gcp.vertex.agent.llm_response",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":737,\"prompt_token_count\":111,\"thoughts_token_count\":464,\"total_token_count\":848}}"
}
},
{
"key": "gen_ai.usage.input_tokens",
"value": {
"intValue": "111"
}
},
{
"key": "gen_ai.usage.output_tokens",
"value": {
"intValue": "1201"
}
},
{
"key": "gen_ai.usage.cache_read.input_tokens",
"value": {
"intValue": "0"
}
},
{
"key": "gen_ai.usage.reasoning.output_tokens",
"value": {
"intValue": "464"
}
},
{
"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\":\"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}],\"role\":\"user\"}],\"config\":{\"system_instruction\":\"List a few key facts about the question.\\n\\nYou are an agent. Your internal name is \\\"search_agent\\\". The description about you is \\\"Gathers key facts about the question.\\\".\",\"labels\":{\"adk_agent_name\":\"search_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\":\"List a few key facts about the question.\\n\\nYou are an agent. Your internal name is \\\"search_agent\\\". The description about you is \\\"Gathers key facts about the question.\\\".\",\"labels\":{\"adk_agent_name\":\"search_agent\"}}"
}
},
{
"key": "llm.input_messages.0.message.role",
"value": {
"stringValue": "system"
}
},
{
"key": "llm.input_messages.0.message.content",
"value": {
"stringValue": "List a few key facts about the question.\n\nYou are an agent. Your internal name is \"search_agent\". The description about you is \"Gathers key facts about the question.\"."
}
},
{
"key": "llm.input_messages.1.message.role",
"value": {
"stringValue": "user"
}
},
{
"key": "llm.input_messages.1.message.contents.0.message_content.text",
"value": {
"stringValue": "Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available."
}
},
{
"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\":\"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":737,\"prompt_token_count\":111,\"thoughts_token_count\":464,\"total_token_count\":848}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "848"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "111"
}
},
{
"key": "llm.token_count.completion_details.reasoning",
"value": {
"intValue": "464"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "737"
}
},
{
"key": "llm.output_messages.0.message.role",
"value": {
"stringValue": "model"
}
},
{
"key": "llm.output_messages.0.message.contents.0.message_content.text",
"value": {
"stringValue": "- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\n\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry."
}
},
{
"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": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "4e5e4d8c1b8bb5a6",
"parentSpanId": "6b6fe5579e0b3f0e",
"name": "agent_run [search_agent]",
"kind": 1,
"startTimeUnixNano": "1791061413579264000",
"endTimeUnixNano": "1791061422331993000",
"attributes": [
{
"key": "agent.name",
"value": {
"stringValue": "search_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": "Gathers key facts about the question."
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "gen_ai.conversation.id",
"value": {
"stringValue": "62b52186-894b-420c-9c58-9f6b5e91f156"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":737,\"prompt_token_count\":111,\"thoughts_token_count\":464,\"total_token_count\":848},\"invocation_id\":\"e-eca39f25-a450-4ae0-8e14-027b0cc04dc9\",\"author\":\"search_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"\"},\"id\":\"2ffe70db-86f6-4877-9549-267b38a0499a\",\"timestamp\":1791061413.580499}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "AGENT"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "6b6fe5579e0b3f0e",
"parentSpanId": "b8647212cd08a783",
"name": "invocation [research_app]",
"kind": 1,
"startTimeUnixNano": "1791061413577822000",
"endTimeUnixNano": "1791061422332181000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"user_id\": \"debug_user_id\", \"session_id\": \"62b52186-894b-420c-9c58-9f6b5e91f156\", \"invocation_id\": null, \"new_message\": {\"parts\": [{\"text\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}], \"role\": \"user\"}, \"state_delta\": null, \"run_config\": {\"save_input_blobs_as_artifacts\": false, \"support_cfc\": false, \"streaming_mode\": \"StreamingMode.NONE\", \"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\": \"<asyncio.locks.Event object at 0x10f00a120 [unset, waiters:1]>\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "session.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "user.id",
"value": {
"stringValue": "debug_user_id"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":737,\"prompt_token_count\":111,\"thoughts_token_count\":464,\"total_token_count\":848},\"invocation_id\":\"e-eca39f25-a450-4ae0-8e14-027b0cc04dc9\",\"author\":\"search_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"search_agent@1\"},\"id\":\"2ffe70db-86f6-4877-9549-267b38a0499a\",\"timestamp\":1791061413.580499}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "b8647212cd08a783",
"parentSpanId": "8634bbf27ff3dcae",
"name": "execute_tool search_agent",
"kind": 1,
"startTimeUnixNano": "1791061413577462000",
"endTimeUnixNano": "1791061422332994000",
"attributes": [
{
"key": "session.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "user.id",
"value": {
"stringValue": "debug_user_id"
}
},
{
"key": "gen_ai.operation.name",
"value": {
"stringValue": "execute_tool"
}
},
{
"key": "gen_ai.tool.description",
"value": {
"stringValue": "Gathers key facts about the question."
}
},
{
"key": "gen_ai.tool.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "gen_ai.tool.type",
"value": {
"stringValue": "AgentTool"
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "research_agent"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{}"
}
},
{
"key": "gcp.vertex.agent.llm_response",
"value": {
"stringValue": "{}"
}
},
{
"key": "gcp.vertex.agent.tool_call_args",
"value": {
"stringValue": "{\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}"
}
},
{
"key": "gen_ai.tool.call.id",
"value": {
"stringValue": "call_uWQsixsWkasp1gO58O9JFIwI"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "e5204e68-601f-4048-8293-28c22f6b30fe"
}
},
{
"key": "gcp.vertex.agent.tool_response",
"value": {
"stringValue": "{\"result\": \"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}"
}
},
{
"key": "tool.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "tool.description",
"value": {
"stringValue": "Gathers key facts about the question."
}
},
{
"key": "tool.parameters",
"value": {
"stringValue": "{\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "tool.id",
"value": {
"stringValue": "call_uWQsixsWkasp1gO58O9JFIwI"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"id\":\"call_uWQsixsWkasp1gO58O9JFIwI\",\"name\":\"search_agent\",\"response\":{\"result\":\"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "TOOL"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "84134817e1e1d326",
"parentSpanId": "8634bbf27ff3dcae",
"name": "call_llm",
"kind": 1,
"startTimeUnixNano": "1791061409259142000",
"endTimeUnixNano": "1791061422333279000",
"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-54d6aa53-50be-439e-a796-c170289bd08c"
}
},
{
"key": "gcp.vertex.agent.session_id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "9a451885-287d-433f-ad12-23eb7e477b5e"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{\"model\": \"openai/openai/gpt-6-luna\", \"config\": {\"system_instruction\": \"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\", \"tools\": [{\"function_declarations\": [{\"description\": \"Gathers key facts about the question.\", \"name\": \"search_agent\", \"parameters_json_schema\": {\"type\": \"object\", \"properties\": {\"request\": {\"type\": \"string\"}}, \"required\": [\"request\"]}}, {\"description\": \"Writes the final answer from the gathered facts.\", \"name\": \"writer_agent\", \"parameters_json_schema\": {\"type\": \"object\", \"properties\": {\"request\": {\"type\": \"string\"}}, \"required\": [\"request\"]}}]}], \"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\":[{\"function_call\":{\"id\":\"call_uWQsixsWkasp1gO58O9JFIwI\",\"args\":{\"request\":\"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"},\"name\":\"search_agent\"}}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":82,\"prompt_token_count\":107,\"total_token_count\":189}}"
}
},
{
"key": "gen_ai.usage.input_tokens",
"value": {
"intValue": "107"
}
},
{
"key": "gen_ai.usage.output_tokens",
"value": {
"intValue": "82"
}
},
{
"key": "gen_ai.usage.cache_read.input_tokens",
"value": {
"intValue": "0"
}
},
{
"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\":\"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\",\"tools\":[{\"function_declarations\":[{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}},{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}]}],\"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.tools.0.tool.json_schema",
"value": {
"stringValue": "{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}"
}
},
{
"key": "llm.tools.1.tool.json_schema",
"value": {
"stringValue": "{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}"
}
},
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"system_instruction\":\"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\",\"tools\":[{\"function_declarations\":[{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}},{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}]}],\"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": "Use search_agent to gather facts, then writer_agent to write the answer from them.\n\nYou 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\":[{\"function_call\":{\"id\":\"call_uWQsixsWkasp1gO58O9JFIwI\",\"args\":{\"request\":\"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"},\"name\":\"search_agent\"}}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":82,\"prompt_token_count\":107,\"total_token_count\":189}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "189"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "107"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "82"
}
},
{
"key": "llm.output_messages.0.message.role",
"value": {
"stringValue": "model"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_uWQsixsWkasp1gO58O9JFIwI"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
}
]
}
]
},
{
"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": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "ff9b9e89e63e0d50",
"parentSpanId": "3ef65a8da5699162",
"name": "gateway.request",
"kind": 3,
"startTimeUnixNano": "1791061422335839000",
"endTimeUnixNano": "1791061426367356000",
"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": "ef93fed6-8459-4868-aa91-fd095603ecaa"
}
}
],
"status": {},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "59ee05ef966fb9b5",
"parentSpanId": "553acc00b5235047",
"name": "gateway.request",
"kind": 3,
"startTimeUnixNano": "1791061426376208000",
"endTimeUnixNano": "1791061428385906000",
"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": "2a51d332-4ec0-4ab6-8361-26363a679d3c"
}
}
],
"status": {},
"flags": 256
}
]
},
{
"scope": {
"name": "openinference.instrumentation.google_adk",
"version": "1.0.2"
},
"spans": [
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "553acc00b5235047",
"parentSpanId": "e8ef8501b94da092",
"name": "call_llm",
"kind": 1,
"startTimeUnixNano": "1791061426374500000",
"endTimeUnixNano": "1791061428388828000",
"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": "writer_agent"
}
},
{
"key": "gen_ai.conversation.id",
"value": {
"stringValue": "f9c8edd1-ac88-4399-8b32-986a642fb06a"
}
},
{
"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-7cf62daa-1fd6-4518-afba-a1e446211c25"
}
},
{
"key": "gcp.vertex.agent.session_id",
"value": {
"stringValue": "f9c8edd1-ac88-4399-8b32-986a642fb06a"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "29b715d6-6cd6-43a3-b2b6-9657f94c3e7a"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{\"model\": \"openai/openai/gpt-6-luna\", \"config\": {\"system_instruction\": \"Write a short answer to the question from the given facts.\\n\\nYou are an agent. Your internal name is \\\"writer_agent\\\". The description about you is \\\"Writes the final answer from the gathered facts.\\\".\", \"labels\": {\"adk_agent_name\": \"writer_agent\"}}, \"contents\": [{\"parts\": [{\"text\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}], \"role\": \"user\"}]}"
}
},
{
"key": "gcp.vertex.agent.llm_response",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":104,\"prompt_token_count\":177,\"total_token_count\":281}}"
}
},
{
"key": "gen_ai.usage.input_tokens",
"value": {
"intValue": "177"
}
},
{
"key": "gen_ai.usage.output_tokens",
"value": {
"intValue": "104"
}
},
{
"key": "gen_ai.usage.cache_read.input_tokens",
"value": {
"intValue": "0"
}
},
{
"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\":\"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}],\"role\":\"user\"}],\"config\":{\"system_instruction\":\"Write a short answer to the question from the given facts.\\n\\nYou are an agent. Your internal name is \\\"writer_agent\\\". The description about you is \\\"Writes the final answer from the gathered facts.\\\".\",\"labels\":{\"adk_agent_name\":\"writer_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\":\"Write a short answer to the question from the given facts.\\n\\nYou are an agent. Your internal name is \\\"writer_agent\\\". The description about you is \\\"Writes the final answer from the gathered facts.\\\".\",\"labels\":{\"adk_agent_name\":\"writer_agent\"}}"
}
},
{
"key": "llm.input_messages.0.message.role",
"value": {
"stringValue": "system"
}
},
{
"key": "llm.input_messages.0.message.content",
"value": {
"stringValue": "Write a short answer to the question from the given facts.\n\nYou are an agent. Your internal name is \"writer_agent\". The description about you is \"Writes the final answer from the gathered facts.\"."
}
},
{
"key": "llm.input_messages.1.message.role",
"value": {
"stringValue": "user"
}
},
{
"key": "llm.input_messages.1.message.contents.0.message_content.text",
"value": {
"stringValue": "Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful."
}
},
{
"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 time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":104,\"prompt_token_count\":177,\"total_token_count\":281}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "281"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "177"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "104"
}
},
{
"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 time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\n\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought."
}
},
{
"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": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "e8ef8501b94da092",
"parentSpanId": "bcccc3f48738ff1a",
"name": "agent_run [writer_agent]",
"kind": 1,
"startTimeUnixNano": "1791061426373859000",
"endTimeUnixNano": "1791061428388943000",
"attributes": [
{
"key": "agent.name",
"value": {
"stringValue": "writer_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": "Writes the final answer from the gathered facts."
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "writer_agent"
}
},
{
"key": "gen_ai.conversation.id",
"value": {
"stringValue": "f9c8edd1-ac88-4399-8b32-986a642fb06a"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":104,\"prompt_token_count\":177,\"total_token_count\":281},\"invocation_id\":\"e-7cf62daa-1fd6-4518-afba-a1e446211c25\",\"author\":\"writer_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"\"},\"id\":\"29b715d6-6cd6-43a3-b2b6-9657f94c3e7a\",\"timestamp\":1791061426.3744152}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "AGENT"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "bcccc3f48738ff1a",
"parentSpanId": "74c57673bfb7aef4",
"name": "invocation [research_app]",
"kind": 1,
"startTimeUnixNano": "1791061426370101000",
"endTimeUnixNano": "1791061428389656000",
"attributes": [
{
"key": "input.value",
"value": {
"stringValue": "{\"user_id\": \"debug_user_id\", \"session_id\": \"f9c8edd1-ac88-4399-8b32-986a642fb06a\", \"invocation_id\": null, \"new_message\": {\"parts\": [{\"text\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}], \"role\": \"user\"}, \"state_delta\": null, \"run_config\": {\"save_input_blobs_as_artifacts\": false, \"support_cfc\": false, \"streaming_mode\": \"StreamingMode.NONE\", \"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\": \"<asyncio.locks.Event object at 0x10f00a120 [unset, waiters:1]>\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "session.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "user.id",
"value": {
"stringValue": "debug_user_id"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":104,\"prompt_token_count\":177,\"total_token_count\":281},\"invocation_id\":\"e-7cf62daa-1fd6-4518-afba-a1e446211c25\",\"author\":\"writer_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"writer_agent@1\"},\"id\":\"29b715d6-6cd6-43a3-b2b6-9657f94c3e7a\",\"timestamp\":1791061426.3744152}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "74c57673bfb7aef4",
"parentSpanId": "8634bbf27ff3dcae",
"name": "execute_tool writer_agent",
"kind": 1,
"startTimeUnixNano": "1791061426369757000",
"endTimeUnixNano": "1791061428390025000",
"attributes": [
{
"key": "session.id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "user.id",
"value": {
"stringValue": "debug_user_id"
}
},
{
"key": "gen_ai.operation.name",
"value": {
"stringValue": "execute_tool"
}
},
{
"key": "gen_ai.tool.description",
"value": {
"stringValue": "Writes the final answer from the gathered facts."
}
},
{
"key": "gen_ai.tool.name",
"value": {
"stringValue": "writer_agent"
}
},
{
"key": "gen_ai.tool.type",
"value": {
"stringValue": "AgentTool"
}
},
{
"key": "gen_ai.agent.name",
"value": {
"stringValue": "research_agent"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{}"
}
},
{
"key": "gcp.vertex.agent.llm_response",
"value": {
"stringValue": "{}"
}
},
{
"key": "gcp.vertex.agent.tool_call_args",
"value": {
"stringValue": "{\"request\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}"
}
},
{
"key": "gen_ai.tool.call.id",
"value": {
"stringValue": "call_q6ZJAEERpBJPhyfNCqFjsyGM"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "d6eddaf3-360d-4434-8e76-499794eaa18a"
}
},
{
"key": "gcp.vertex.agent.tool_response",
"value": {
"stringValue": "{\"result\": \"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}"
}
},
{
"key": "tool.name",
"value": {
"stringValue": "writer_agent"
}
},
{
"key": "tool.description",
"value": {
"stringValue": "Writes the final answer from the gathered facts."
}
},
{
"key": "tool.parameters",
"value": {
"stringValue": "{\"request\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}"
}
},
{
"key": "input.value",
"value": {
"stringValue": "{\"request\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}"
}
},
{
"key": "input.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "tool.id",
"value": {
"stringValue": "call_q6ZJAEERpBJPhyfNCqFjsyGM"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"id\":\"call_q6ZJAEERpBJPhyfNCqFjsyGM\",\"name\":\"writer_agent\",\"response\":{\"result\":\"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "TOOL"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "3ef65a8da5699162",
"parentSpanId": "8634bbf27ff3dcae",
"name": "call_llm",
"kind": 1,
"startTimeUnixNano": "1791061422333948000",
"endTimeUnixNano": "1791061428390550000",
"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-54d6aa53-50be-439e-a796-c170289bd08c"
}
},
{
"key": "gcp.vertex.agent.session_id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "11b7c2e9-c6b0-4954-ac6e-ecb15c63a254"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{\"model\": \"openai/openai/gpt-6-luna\", \"config\": {\"system_instruction\": \"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\", \"tools\": [{\"function_declarations\": [{\"description\": \"Gathers key facts about the question.\", \"name\": \"search_agent\", \"parameters_json_schema\": {\"type\": \"object\", \"properties\": {\"request\": {\"type\": \"string\"}}, \"required\": [\"request\"]}}, {\"description\": \"Writes the final answer from the gathered facts.\", \"name\": \"writer_agent\", \"parameters_json_schema\": {\"type\": \"object\", \"properties\": {\"request\": {\"type\": \"string\"}}, \"required\": [\"request\"]}}]}], \"labels\": {\"adk_agent_name\": \"research_agent\"}}, \"contents\": [{\"parts\": [{\"text\": \"What is an agent trace?\"}], \"role\": \"user\"}, {\"parts\": [{\"function_call\": {\"id\": \"call_uWQsixsWkasp1gO58O9JFIwI\", \"args\": {\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}, \"name\": \"search_agent\"}}], \"role\": \"model\"}, {\"parts\": [{\"function_response\": {\"id\": \"call_uWQsixsWkasp1gO58O9JFIwI\", \"name\": \"search_agent\", \"response\": {\"result\": \"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}}}], \"role\": \"user\"}]}"
}
},
{
"key": "gcp.vertex.agent.llm_response",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"function_call\":{\"id\":\"call_q6ZJAEERpBJPhyfNCqFjsyGM\",\"args\":{\"request\":\"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"},\"name\":\"writer_agent\"}}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":144,\"prompt_token_count\":473,\"total_token_count\":617}}"
}
},
{
"key": "gen_ai.usage.input_tokens",
"value": {
"intValue": "473"
}
},
{
"key": "gen_ai.usage.output_tokens",
"value": {
"intValue": "144"
}
},
{
"key": "gen_ai.usage.cache_read.input_tokens",
"value": {
"intValue": "0"
}
},
{
"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\"},{\"parts\":[{\"function_call\":{\"id\":\"call_uWQsixsWkasp1gO58O9JFIwI\",\"args\":{\"request\":\"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"},\"name\":\"search_agent\"}}],\"role\":\"model\"},{\"parts\":[{\"function_response\":{\"id\":\"call_uWQsixsWkasp1gO58O9JFIwI\",\"name\":\"search_agent\",\"response\":{\"result\":\"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}}}],\"role\":\"user\"}],\"config\":{\"system_instruction\":\"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\",\"tools\":[{\"function_declarations\":[{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}},{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}]}],\"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.tools.0.tool.json_schema",
"value": {
"stringValue": "{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}"
}
},
{
"key": "llm.tools.1.tool.json_schema",
"value": {
"stringValue": "{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}"
}
},
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"system_instruction\":\"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\",\"tools\":[{\"function_declarations\":[{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}},{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}]}],\"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": "Use search_agent to gather facts, then writer_agent to write the answer from them.\n\nYou 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": "llm.input_messages.2.message.role",
"value": {
"stringValue": "model"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_uWQsixsWkasp1gO58O9JFIwI"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}"
}
},
{
"key": "llm.input_messages.3.message.role",
"value": {
"stringValue": "tool"
}
},
{
"key": "llm.input_messages.3.message.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "llm.input_messages.3.message.tool_call_id",
"value": {
"stringValue": "call_uWQsixsWkasp1gO58O9JFIwI"
}
},
{
"key": "llm.input_messages.3.message.content",
"value": {
"stringValue": "{\"result\": \"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"function_call\":{\"id\":\"call_q6ZJAEERpBJPhyfNCqFjsyGM\",\"args\":{\"request\":\"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"},\"name\":\"writer_agent\"}}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":144,\"prompt_token_count\":473,\"total_token_count\":617}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "617"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "473"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "144"
}
},
{
"key": "llm.output_messages.0.message.role",
"value": {
"stringValue": "model"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_q6ZJAEERpBJPhyfNCqFjsyGM"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "writer_agent"
}
},
{
"key": "llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"request\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "LLM"
}
}
],
"status": {
"code": 1
},
"flags": 256
}
]
}
]
},
{
"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": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "da11766a43de4d4e",
"parentSpanId": "5f3632fb210c2e73",
"name": "gateway.request",
"kind": 3,
"startTimeUnixNano": "1791061428394630000",
"endTimeUnixNano": "1791061430049572000",
"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": "3cd24999-9cdc-4855-bfd7-5b126b3f365e"
}
}
],
"status": {},
"flags": 256
}
]
},
{
"scope": {
"name": "openinference.instrumentation.google_adk",
"version": "1.0.2"
},
"spans": [
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "5f3632fb210c2e73",
"parentSpanId": "8634bbf27ff3dcae",
"name": "call_llm",
"kind": 1,
"startTimeUnixNano": "1791061428391571000",
"endTimeUnixNano": "1791061430051900000",
"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-54d6aa53-50be-439e-a796-c170289bd08c"
}
},
{
"key": "gcp.vertex.agent.session_id",
"value": {
"stringValue": "debug_session_id"
}
},
{
"key": "gcp.vertex.agent.event_id",
"value": {
"stringValue": "b2afa357-7544-4e38-ad3c-4355040f16ac"
}
},
{
"key": "gcp.vertex.agent.llm_request",
"value": {
"stringValue": "{\"model\": \"openai/openai/gpt-6-luna\", \"config\": {\"system_instruction\": \"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\", \"tools\": [{\"function_declarations\": [{\"description\": \"Gathers key facts about the question.\", \"name\": \"search_agent\", \"parameters_json_schema\": {\"type\": \"object\", \"properties\": {\"request\": {\"type\": \"string\"}}, \"required\": [\"request\"]}}, {\"description\": \"Writes the final answer from the gathered facts.\", \"name\": \"writer_agent\", \"parameters_json_schema\": {\"type\": \"object\", \"properties\": {\"request\": {\"type\": \"string\"}}, \"required\": [\"request\"]}}]}], \"labels\": {\"adk_agent_name\": \"research_agent\"}}, \"contents\": [{\"parts\": [{\"text\": \"What is an agent trace?\"}], \"role\": \"user\"}, {\"parts\": [{\"function_call\": {\"id\": \"call_uWQsixsWkasp1gO58O9JFIwI\", \"args\": {\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}, \"name\": \"search_agent\"}}], \"role\": \"model\"}, {\"parts\": [{\"function_response\": {\"id\": \"call_uWQsixsWkasp1gO58O9JFIwI\", \"name\": \"search_agent\", \"response\": {\"result\": \"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}}}], \"role\": \"user\"}, {\"parts\": [{\"function_call\": {\"id\": \"call_q6ZJAEERpBJPhyfNCqFjsyGM\", \"args\": {\"request\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}, \"name\": \"writer_agent\"}}], \"role\": \"model\"}, {\"parts\": [{\"function_response\": {\"id\": \"call_q6ZJAEERpBJPhyfNCqFjsyGM\", \"name\": \"writer_agent\", \"response\": {\"result\": \"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}}}], \"role\": \"user\"}]}"
}
},
{
"key": "gcp.vertex.agent.llm_response",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a time-ordered record of an AI agent\u2019s execution, sometimes organized hierarchically. It may show the agent\u2019s steps, tool calls and results, inputs and outputs, and handoffs.\\n\\nFor example: *The agent receives a question \u2192 searches the web \u2192 gets results \u2192 writes a summary.* Traces help with debugging, evaluation, and auditing, but show only what the system records\u2014and don\u2019t necessarily reveal the model\u2019s private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":101,\"prompt_token_count\":736,\"total_token_count\":837}}"
}
},
{
"key": "gen_ai.usage.input_tokens",
"value": {
"intValue": "736"
}
},
{
"key": "gen_ai.usage.output_tokens",
"value": {
"intValue": "101"
}
},
{
"key": "gen_ai.usage.cache_read.input_tokens",
"value": {
"intValue": "0"
}
},
{
"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\"},{\"parts\":[{\"function_call\":{\"id\":\"call_uWQsixsWkasp1gO58O9JFIwI\",\"args\":{\"request\":\"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"},\"name\":\"search_agent\"}}],\"role\":\"model\"},{\"parts\":[{\"function_response\":{\"id\":\"call_uWQsixsWkasp1gO58O9JFIwI\",\"name\":\"search_agent\",\"response\":{\"result\":\"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}}}],\"role\":\"user\"},{\"parts\":[{\"function_call\":{\"id\":\"call_q6ZJAEERpBJPhyfNCqFjsyGM\",\"args\":{\"request\":\"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"},\"name\":\"writer_agent\"}}],\"role\":\"model\"},{\"parts\":[{\"function_response\":{\"id\":\"call_q6ZJAEERpBJPhyfNCqFjsyGM\",\"name\":\"writer_agent\",\"response\":{\"result\":\"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}}}],\"role\":\"user\"}],\"config\":{\"system_instruction\":\"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\",\"tools\":[{\"function_declarations\":[{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}},{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}]}],\"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.tools.0.tool.json_schema",
"value": {
"stringValue": "{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}"
}
},
{
"key": "llm.tools.1.tool.json_schema",
"value": {
"stringValue": "{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}"
}
},
{
"key": "llm.model_name",
"value": {
"stringValue": "openai/openai/gpt-6-luna"
}
},
{
"key": "llm.invocation_parameters",
"value": {
"stringValue": "{\"system_instruction\":\"Use search_agent to gather facts, then writer_agent to write the answer from them.\\n\\nYou are an agent. Your internal name is \\\"research_agent\\\".\",\"tools\":[{\"function_declarations\":[{\"description\":\"Gathers key facts about the question.\",\"name\":\"search_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}},{\"description\":\"Writes the final answer from the gathered facts.\",\"name\":\"writer_agent\",\"parameters_json_schema\":{\"type\":\"object\",\"properties\":{\"request\":{\"type\":\"string\"}},\"required\":[\"request\"]}}]}],\"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": "Use search_agent to gather facts, then writer_agent to write the answer from them.\n\nYou 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": "llm.input_messages.2.message.role",
"value": {
"stringValue": "model"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_uWQsixsWkasp1gO58O9JFIwI"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "llm.input_messages.2.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"request\": \"Find a concise, accurate definition of \u201cagent trace\u201d in the context of AI agents/LLM systems. Explain what it records (steps, tool calls, inputs/outputs, reasoning/state), why it is useful (debugging, evaluation, auditing), and note that definitions can vary. Prefer authoritative/general sources if available.\"}"
}
},
{
"key": "llm.input_messages.3.message.role",
"value": {
"stringValue": "tool"
}
},
{
"key": "llm.input_messages.3.message.name",
"value": {
"stringValue": "search_agent"
}
},
{
"key": "llm.input_messages.3.message.tool_call_id",
"value": {
"stringValue": "call_uWQsixsWkasp1gO58O9JFIwI"
}
},
{
"key": "llm.input_messages.3.message.content",
"value": {
"stringValue": "{\"result\": \"- **Definition:** An **agent trace** is a time-ordered, often hierarchical record of an agent\u2019s execution. It shows the steps the system took and how those steps relate to one another.\\n- **What it may record:** Agent or model steps, tool calls and results, inputs and outputs, handoffs, and relevant context or state. Some systems also capture decision summaries or reasoning-related data, but a trace does **not** necessarily expose the model\u2019s private chain of thought. Captured detail varies by system.\\n- **Why it is useful:** Traces help developers debug failures and unexpected tool use, evaluate runs, and review system behavior for auditing. They support those tasks only to the extent that relevant data is captured; traces may also contain sensitive information.\\n- **Definitions vary:** Frameworks use \u201ctrace\u201d differently\u2014for example, to mean a whole agent run, a tree of operations, or a collection of recorded events.\\n\\n**Sources:** [OpenAI Agents SDK tracing](https://openai.github.io/openai-agents-python/tracing/) describes recording agent workflow events such as model calls, tool calls, and handoffs. [OpenTelemetry GenAI semantic conventions](https://opentelemetry.io/docs/specs/semconv/gen-ai/) provide a broader standard for representing AI operations in telemetry.\"}"
}
},
{
"key": "llm.input_messages.4.message.role",
"value": {
"stringValue": "model"
}
},
{
"key": "llm.input_messages.4.message.tool_calls.0.tool_call.id",
"value": {
"stringValue": "call_q6ZJAEERpBJPhyfNCqFjsyGM"
}
},
{
"key": "llm.input_messages.4.message.tool_calls.0.tool_call.function.name",
"value": {
"stringValue": "writer_agent"
}
},
{
"key": "llm.input_messages.4.message.tool_calls.0.tool_call.function.arguments",
"value": {
"stringValue": "{\"request\": \"Answer the user\u2019s \u201cWhat is an agent trace?\u201d plainly and concisely. Use these facts: An agent trace is a time-ordered, sometimes hierarchical record of an agent\u2019s execution, showing its steps and their relations. It may include model/agent steps, tool calls and results, inputs/outputs, handoffs, and relevant context/state. Some systems capture decision summaries/reasoning-related data, but it does not necessarily reveal private chain of thought; details vary by framework. Useful for debugging, evaluating, and auditing agent behavior, subject to what was captured and possible sensitive data. Give a concrete small example if helpful.\"}"
}
},
{
"key": "llm.input_messages.5.message.role",
"value": {
"stringValue": "tool"
}
},
{
"key": "llm.input_messages.5.message.name",
"value": {
"stringValue": "writer_agent"
}
},
{
"key": "llm.input_messages.5.message.tool_call_id",
"value": {
"stringValue": "call_q6ZJAEERpBJPhyfNCqFjsyGM"
}
},
{
"key": "llm.input_messages.5.message.content",
"value": {
"stringValue": "{\"result\": \"An **agent trace** is a time-ordered record of an agent\u2019s execution, sometimes organized hierarchically. It can show the agent\u2019s steps, tool calls and results, inputs and outputs, handoffs, and relevant context.\\n\\nFor example: *Agent receives a question \u2192 searches the web \u2192 gets results \u2192 summarizes them.* Traces help with debugging, evaluation, and auditing, but show only what the system captured. They may include decision summaries, but don\u2019t necessarily reveal private chain of thought.\"}"
}
},
{
"key": "output.value",
"value": {
"stringValue": "{\"model_version\":\"openai/gpt-6-luna\",\"content\":{\"parts\":[{\"text\":\"An **agent trace** is a time-ordered record of an AI agent\u2019s execution, sometimes organized hierarchically. It may show the agent\u2019s steps, tool calls and results, inputs and outputs, and handoffs.\\n\\nFor example: *The agent receives a question \u2192 searches the web \u2192 gets results \u2192 writes a summary.* Traces help with debugging, evaluation, and auditing, but show only what the system records\u2014and don\u2019t necessarily reveal the model\u2019s private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":101,\"prompt_token_count\":736,\"total_token_count\":837}}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "llm.token_count.total",
"value": {
"intValue": "837"
}
},
{
"key": "llm.token_count.prompt",
"value": {
"intValue": "736"
}
},
{
"key": "llm.token_count.completion",
"value": {
"intValue": "101"
}
},
{
"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 time-ordered record of an AI agent\u2019s execution, sometimes organized hierarchically. It may show the agent\u2019s steps, tool calls and results, inputs and outputs, and handoffs.\n\nFor example: *The agent receives a question \u2192 searches the web \u2192 gets results \u2192 writes a summary.* Traces help with debugging, evaluation, and auditing, but show only what the system records\u2014and don\u2019t necessarily reveal the model\u2019s private chain of thought."
}
},
{
"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": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "8634bbf27ff3dcae",
"parentSpanId": "bb3f4b8b7dd22e57",
"name": "agent_run [research_agent]",
"kind": 1,
"startTimeUnixNano": "1791061409234311000",
"endTimeUnixNano": "1791061430051991000",
"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 time-ordered record of an AI agent\u2019s execution, sometimes organized hierarchically. It may show the agent\u2019s steps, tool calls and results, inputs and outputs, and handoffs.\\n\\nFor example: *The agent receives a question \u2192 searches the web \u2192 gets results \u2192 writes a summary.* Traces help with debugging, evaluation, and auditing, but show only what the system records\u2014and don\u2019t necessarily reveal the model\u2019s private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":101,\"prompt_token_count\":736,\"total_token_count\":837},\"invocation_id\":\"e-54d6aa53-50be-439e-a796-c170289bd08c\",\"author\":\"research_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"\"},\"id\":\"b2afa357-7544-4e38-ad3c-4355040f16ac\",\"timestamp\":1791061428.3915021}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "AGENT"
}
}
],
"status": {
"code": 1
},
"flags": 256
},
{
"traceId": "4b2f6b06d161fa2b40d79fced2104395",
"spanId": "bb3f4b8b7dd22e57",
"name": "invocation [research_app]",
"kind": 1,
"startTimeUnixNano": "1791061409135583000",
"endTimeUnixNano": "1791061430052181000",
"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.NONE\", \"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 time-ordered record of an AI agent\u2019s execution, sometimes organized hierarchically. It may show the agent\u2019s steps, tool calls and results, inputs and outputs, and handoffs.\\n\\nFor example: *The agent receives a question \u2192 searches the web \u2192 gets results \u2192 writes a summary.* Traces help with debugging, evaluation, and auditing, but show only what the system records\u2014and don\u2019t necessarily reveal the model\u2019s private chain of thought.\"}],\"role\":\"model\"},\"partial\":false,\"finish_reason\":\"STOP\",\"usage_metadata\":{\"cached_content_token_count\":0,\"candidates_token_count\":101,\"prompt_token_count\":736,\"total_token_count\":837},\"invocation_id\":\"e-54d6aa53-50be-439e-a796-c170289bd08c\",\"author\":\"research_agent\",\"actions\":{\"state_delta\":{},\"artifact_delta\":{},\"requested_auth_configs\":{},\"requested_tool_confirmations\":{}},\"node_info\":{\"path\":\"research_agent@1\"},\"id\":\"b2afa357-7544-4e38-ad3c-4355040f16ac\",\"timestamp\":1791061428.3915021}"
}
},
{
"key": "output.mime_type",
"value": {
"stringValue": "application/json"
}
},
{
"key": "openinference.span.kind",
"value": {
"stringValue": "CHAIN"
}
}
],
"status": {
"code": 1
},
"flags": 256
}
]
}
]
}
]
}