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]

10.5 KB
Raw Blame
{
  "resourceSpans": [
    {
      "resource": {
        "attributes": [
          {
            "key": "host.name",
            "value": {
              "stringValue": "fixture-host"
            }
          },
          {
            "key": "host.arch",
            "value": {
              "stringValue": "arm64"
            }
          },
          {
            "key": "host.id",
            "value": {
              "stringValue": "00000000-0000-0000-0000-000000000000"
            }
          },
          {
            "key": "process.pid",
            "value": {
              "intValue": "85181"
            }
          },
          {
            "key": "process.executable.name",
            "value": {
              "stringValue": "node"
            }
          },
          {
            "key": "process.executable.path",
            "value": {
              "stringValue": "/home/user/.local/share/fnm/node-versions/v25.8.1/installation/bin/node"
            }
          },
          {
            "key": "process.command_args",
            "value": {
              "arrayValue": {
                "values": [
                  {
                    "stringValue": "/home/user/.local/share/fnm/node-versions/v25.8.1/installation/bin/node"
                  },
                  {
                    "stringValue": "--env-file=.env"
                  },
                  {
                    "stringValue": "/home/user/dev/litellm-lens-example/vercel-ai-sdk-js/validate-attempts.ts"
                  },
                  {
                    "stringValue": "streaming"
                  }
                ]
              }
            }
          },
          {
            "key": "process.runtime.version",
            "value": {
              "stringValue": "25.8.1"
            }
          },
          {
            "key": "process.runtime.name",
            "value": {
              "stringValue": "nodejs"
            }
          },
          {
            "key": "process.runtime.description",
            "value": {
              "stringValue": "Node.js"
            }
          },
          {
            "key": "process.command",
            "value": {
              "stringValue": "/home/user/dev/litellm-lens-example/vercel-ai-sdk-js/validate-attempts.ts"
            }
          },
          {
            "key": "process.owner",
            "value": {
              "stringValue": "user"
            }
          },
          {
            "key": "service.name",
            "value": {
              "stringValue": "unknown_service:node"
            }
          },
          {
            "key": "telemetry.sdk.language",
            "value": {
              "stringValue": "nodejs"
            }
          },
          {
            "key": "telemetry.sdk.name",
            "value": {
              "stringValue": "opentelemetry"
            }
          },
          {
            "key": "telemetry.sdk.version",
            "value": {
              "stringValue": "2.11.0"
            }
          }
        ]
      },
      "scopeSpans": [
        {
          "scope": {
            "name": "litellm.gateway.client"
          },
          "spans": [
            {
              "traceId": "2acad168d77811f8fa89100e5e1fc0e7",
              "spanId": "a08a06551dfef63e",
              "parentSpanId": "286623e8a26801b2",
              "name": "gateway.request",
              "kind": 3,
              "startTimeUnixNano": "1791061396255000000",
              "endTimeUnixNano": "1791061397062535042",
              "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": "d269912a-2203-4e1f-8fd8-640a09f9cb40"
                  }
                }
              ],
              "status": {},
              "flags": 257
            }
          ]
        },
        {
          "scope": {
            "name": "gen_ai"
          },
          "spans": [
            {
              "traceId": "2acad168d77811f8fa89100e5e1fc0e7",
              "spanId": "286623e8a26801b2",
              "parentSpanId": "8f36ee575352a104",
              "name": "chat openai/gpt-6-luna",
              "kind": 3,
              "startTimeUnixNano": "1791061396249000000",
              "endTimeUnixNano": "1791061397063965250",
              "attributes": [
                {
                  "key": "gen_ai.operation.name",
                  "value": {
                    "stringValue": "chat"
                  }
                },
                {
                  "key": "gen_ai.provider.name",
                  "value": {
                    "stringValue": "litellm.chat"
                  }
                },
                {
                  "key": "gen_ai.request.model",
                  "value": {
                    "stringValue": "openai/gpt-6-luna"
                  }
                },
                {
                  "key": "gen_ai.input.messages",
                  "value": {
                    "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"Reply with one short sentence about agent traces.\"}]}]"
                  }
                },
                {
                  "key": "gen_ai.client.operation.duration",
                  "value": {
                    "doubleValue": 0.8144916250000002
                  }
                },
                {
                  "key": "gen_ai.client.operation.time_to_first_chunk",
                  "value": {
                    "doubleValue": 0.7251042500000001
                  }
                },
                {
                  "key": "gen_ai.client.operation.time_per_output_chunk",
                  "value": {
                    "doubleValue": 0.006385989583333336
                  }
                },
                {
                  "key": "gen_ai.response.finish_reasons",
                  "value": {
                    "arrayValue": {
                      "values": [
                        {
                          "stringValue": "stop"
                        }
                      ]
                    }
                  }
                },
                {
                  "key": "gen_ai.response.id",
                  "value": {
                    "stringValue": "chatcmpl-EV1AyMCFfzO4g0UVvSESWJ3Q5rFZK"
                  }
                },
                {
                  "key": "gen_ai.response.model",
                  "value": {
                    "stringValue": "openai/gpt-6-luna"
                  }
                },
                {
                  "key": "gen_ai.output.messages",
                  "value": {
                    "stringValue": "[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"Agent traces show the steps an agent took to complete a task.\"}],\"finish_reason\":\"stop\"}]"
                  }
                }
              ],
              "status": {},
              "flags": 257
            },
            {
              "traceId": "2acad168d77811f8fa89100e5e1fc0e7",
              "spanId": "8f36ee575352a104",
              "parentSpanId": "9f7a784601eac295",
              "name": "step 1",
              "kind": 1,
              "startTimeUnixNano": "1791061396249000000",
              "endTimeUnixNano": "1791061397064612000",
              "attributes": [
                {
                  "key": "gen_ai.operation.name",
                  "value": {
                    "stringValue": "agent_step"
                  }
                }
              ],
              "status": {},
              "flags": 257
            },
            {
              "traceId": "2acad168d77811f8fa89100e5e1fc0e7",
              "spanId": "9f7a784601eac295",
              "name": "invoke_agent openai/gpt-6-luna",
              "kind": 1,
              "startTimeUnixNano": "1791061396245000000",
              "endTimeUnixNano": "1791061397064838875",
              "attributes": [
                {
                  "key": "gen_ai.operation.name",
                  "value": {
                    "stringValue": "invoke_agent"
                  }
                },
                {
                  "key": "gen_ai.provider.name",
                  "value": {
                    "stringValue": "litellm.chat"
                  }
                },
                {
                  "key": "gen_ai.request.model",
                  "value": {
                    "stringValue": "openai/gpt-6-luna"
                  }
                },
                {
                  "key": "gen_ai.agent.name",
                  "value": {
                    "stringValue": "vercel_streaming"
                  }
                },
                {
                  "key": "gen_ai.input.messages",
                  "value": {
                    "stringValue": "[{\"role\":\"user\",\"parts\":[{\"type\":\"text\",\"content\":\"Reply with one short sentence about agent traces.\"}]}]"
                  }
                },
                {
                  "key": "gen_ai.response.finish_reasons",
                  "value": {
                    "arrayValue": {
                      "values": [
                        {
                          "stringValue": "stop"
                        }
                      ]
                    }
                  }
                },
                {
                  "key": "gen_ai.output.messages",
                  "value": {
                    "stringValue": "[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"content\":\"Agent traces show the steps an agent took to complete a task.\"}],\"finish_reason\":\"stop\"}]"
                  }
                }
              ],
              "status": {},
              "flags": 257
            }
          ]
        }
      ]
    }
  ]
}