Skip to content

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]

11.8 KB
Raw Blame
{
  "resourceSpans": [
    {
      "resource": {
        "attributes": [
          {
            "key": "telemetry.sdk.language",
            "value": {
              "stringValue": "python"
            }
          },
          {
            "key": "telemetry.sdk.name",
            "value": {
              "stringValue": "opentelemetry"
            }
          },
          {
            "key": "telemetry.sdk.version",
            "value": {
              "stringValue": "1.45.0"
            }
          },
          {
            "key": "service.instance.id",
            "value": {
              "stringValue": "cef9613f-cfb6-4664-8e51-f3be7d834c7a"
            }
          },
          {
            "key": "telemetry.auto.version",
            "value": {
              "stringValue": "0.66b0"
            }
          },
          {
            "key": "service.name",
            "value": {
              "stringValue": "unknown_service:python3"
            }
          }
        ]
      },
      "scopeSpans": [
        {
          "scope": {
            "name": "litellm.gateway.client"
          },
          "spans": [
            {
              "traceId": "d59ddcb97fb9bced94931df97e06d02f",
              "spanId": "3d99b5070f22df12",
              "parentSpanId": "3cb702edbce111e7",
              "name": "gateway.request",
              "kind": 3,
              "startTimeUnixNano": "1791061361049433000",
              "endTimeUnixNano": "1791061363567498000",
              "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": "25cb4dbf-9676-4b83-a427-bb7e3655dcc3"
                  }
                }
              ],
              "status": {},
              "flags": 256
            }
          ]
        },
        {
          "scope": {
            "name": "strands.telemetry.tracer"
          },
          "spans": [
            {
              "traceId": "d59ddcb97fb9bced94931df97e06d02f",
              "spanId": "3cb702edbce111e7",
              "parentSpanId": "af8eeb87690dc466",
              "name": "chat",
              "kind": 1,
              "startTimeUnixNano": "1791061360813404000",
              "endTimeUnixNano": "1791061363567665000",
              "attributes": [
                {
                  "key": "gen_ai.event.start_time",
                  "value": {
                    "stringValue": "2026-10-03T21:02:40.813405+00:00"
                  }
                },
                {
                  "key": "gen_ai.operation.name",
                  "value": {
                    "stringValue": "chat"
                  }
                },
                {
                  "key": "gen_ai.provider.name",
                  "value": {
                    "stringValue": "strands-agents"
                  }
                },
                {
                  "key": "gen_ai.request.model",
                  "value": {
                    "stringValue": "openai/gpt-6-luna"
                  }
                },
                {
                  "key": "gen_ai.input.messages",
                  "value": {
                    "stringValue": "[{\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"What is an agent trace?\"}]}]"
                  }
                },
                {
                  "key": "gen_ai.output.messages",
                  "value": {
                    "stringValue": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"An **agent trace** is a record of what an AI agent did during a task, step by step. It may include the agent\u2019s inputs and outputs, tool calls, tool results, timing, and errors.\\n\\nTraces help developers understand, debug, and evaluate an agent\u2019s behavior. They don\u2019t necessarily include the model\u2019s private chain-of-thought; they usually capture observable actions and results.\"}], \"finish_reason\": \"end_turn\"}]"
                  }
                },
                {
                  "key": "gen_ai.event.end_time",
                  "value": {
                    "stringValue": "2026-10-03T21:02:43.567641+00:00"
                  }
                },
                {
                  "key": "gen_ai.usage.prompt_tokens",
                  "value": {
                    "intValue": "109"
                  }
                },
                {
                  "key": "gen_ai.usage.input_tokens",
                  "value": {
                    "intValue": "109"
                  }
                },
                {
                  "key": "gen_ai.usage.completion_tokens",
                  "value": {
                    "intValue": "158"
                  }
                },
                {
                  "key": "gen_ai.usage.output_tokens",
                  "value": {
                    "intValue": "158"
                  }
                },
                {
                  "key": "gen_ai.usage.total_tokens",
                  "value": {
                    "intValue": "267"
                  }
                },
                {
                  "key": "gen_ai.server.time_to_first_token",
                  "value": {
                    "intValue": "1886"
                  }
                }
              ],
              "status": {
                "code": 1
              },
              "flags": 256
            },
            {
              "traceId": "d59ddcb97fb9bced94931df97e06d02f",
              "spanId": "af8eeb87690dc466",
              "parentSpanId": "14de27d8d8573810",
              "name": "execute_event_loop_cycle",
              "kind": 1,
              "startTimeUnixNano": "1791061360813321000",
              "endTimeUnixNano": "1791061363567872000",
              "attributes": [
                {
                  "key": "gen_ai.event.start_time",
                  "value": {
                    "stringValue": "2026-10-03T21:02:40.813323+00:00"
                  }
                },
                {
                  "key": "gen_ai.operation.name",
                  "value": {
                    "stringValue": "execute_event_loop_cycle"
                  }
                },
                {
                  "key": "gen_ai.provider.name",
                  "value": {
                    "stringValue": "strands-agents"
                  }
                },
                {
                  "key": "event_loop.cycle_id",
                  "value": {
                    "stringValue": "000ad6d9-df30-4bf3-9884-3af13de6c1fc"
                  }
                },
                {
                  "key": "gen_ai.input.messages",
                  "value": {
                    "stringValue": "[{\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"What is an agent trace?\"}]}]"
                  }
                },
                {
                  "key": "gen_ai.event.end_time",
                  "value": {
                    "stringValue": "2026-10-03T21:02:43.567865+00:00"
                  }
                }
              ],
              "status": {
                "code": 1
              },
              "flags": 256
            },
            {
              "traceId": "d59ddcb97fb9bced94931df97e06d02f",
              "spanId": "14de27d8d8573810",
              "name": "invoke_agent research_agent",
              "kind": 1,
              "startTimeUnixNano": "1791061360812989000",
              "endTimeUnixNano": "1791061363567984000",
              "attributes": [
                {
                  "key": "gen_ai.event.start_time",
                  "value": {
                    "stringValue": "2026-10-03T21:02:40.812995+00:00"
                  }
                },
                {
                  "key": "gen_ai.operation.name",
                  "value": {
                    "stringValue": "invoke_agent"
                  }
                },
                {
                  "key": "gen_ai.provider.name",
                  "value": {
                    "stringValue": "strands-agents"
                  }
                },
                {
                  "key": "gen_ai.agent.name",
                  "value": {
                    "stringValue": "research_agent"
                  }
                },
                {
                  "key": "gen_ai.request.model",
                  "value": {
                    "stringValue": "openai/gpt-6-luna"
                  }
                },
                {
                  "key": "gen_ai.input.messages",
                  "value": {
                    "stringValue": "[{\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"What is an agent trace?\"}]}]"
                  }
                },
                {
                  "key": "gen_ai.output.messages",
                  "value": {
                    "stringValue": "[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"An **agent trace** is a record of what an AI agent did during a task, step by step. It may include the agent\u2019s inputs and outputs, tool calls, tool results, timing, and errors.\\n\\nTraces help developers understand, debug, and evaluate an agent\u2019s behavior. They don\u2019t necessarily include the model\u2019s private chain-of-thought; they usually capture observable actions and results.\\n\"}], \"finish_reason\": \"end_turn\"}]"
                  }
                },
                {
                  "key": "gen_ai.event.end_time",
                  "value": {
                    "stringValue": "2026-10-03T21:02:43.567976+00:00"
                  }
                },
                {
                  "key": "gen_ai.usage.prompt_tokens",
                  "value": {
                    "intValue": "109"
                  }
                },
                {
                  "key": "gen_ai.usage.completion_tokens",
                  "value": {
                    "intValue": "158"
                  }
                },
                {
                  "key": "gen_ai.usage.input_tokens",
                  "value": {
                    "intValue": "109"
                  }
                },
                {
                  "key": "gen_ai.usage.output_tokens",
                  "value": {
                    "intValue": "158"
                  }
                },
                {
                  "key": "gen_ai.usage.total_tokens",
                  "value": {
                    "intValue": "267"
                  }
                },
                {
                  "key": "gen_ai.usage.cache_read.input_tokens",
                  "value": {
                    "intValue": "0"
                  }
                },
                {
                  "key": "gen_ai.usage.cache_creation.input_tokens",
                  "value": {
                    "intValue": "0"
                  }
                }
              ],
              "status": {
                "code": 1
              },
              "flags": 256
            }
          ]
        }
      ]
    }
  ]
}