{
  "schema_version": "1.1",
  "id": "s4:https://vercel.com/changelog/export-ai-gateway-traces-with-vercel-drains",
  "slug": "export-ai-gateway-traces-with-vercel-drains-0enwlg4",
  "url": "https://feed7.dev/p/export-ai-gateway-traces-with-vercel-drains-0enwlg4",
  "title": "Export AI Gateway traces with Vercel Drains",
  "why_included": "Vercel AI Gateway can export per-request OpenTelemetry traces, exposing routing, retries, latency, tokens, cost, and attribution without sending prompt or completion content.",
  "summary": "AI Gateway now emits **one OpenTelemetry trace per request**. Pro and Enterprise teams can export traces through Vercel Drains to OTLP/HTTP endpoints, with routing, fallbacks, retries, usage, cost, latency, status, and deployment attribution included.",
  "practical_implication": "Send sampled traces to the observability system you already use, then inspect provider failover, slow first tokens, and unexplained agent costs alongside application telemetry. Prompt and completion content are excluded from the drain.",
  "agent_context": "AI Gateway now emits **one OpenTelemetry trace per request**. Pro and Enterprise teams can export traces through Vercel Drains to OTLP/HTTP endpoints, with routing, fallbacks, retries, usage, cost, latency, status, and deployment attribution included.\n\nSend sampled traces to the observability system you already use, then inspect provider failover, slow first tokens, and unexplained agent costs alongside application telemetry. Prompt and completion content are excluded from the drain.\n\nExport costs **$0.05 per 1,000 delivered traces per drain**, plus **$0.50 per GB** transferred. Multiple provider attempts still count as one request, but sending the same request to multiple drains creates separate delivery charges.",
  "source": {
    "name": "Vercel",
    "url": "https://vercel.com/changelog/export-ai-gateway-traces-with-vercel-drains",
    "published_at": "2026-08-05T05:00:00.000Z"
  },
  "source_class": "blog_post",
  "content_type": "Engineering Post",
  "layer": "infra",
  "domains": [
    "coding"
  ],
  "topics": [
    "gateways",
    "observability"
  ],
  "verification": {
    "status": "official_source",
    "label": "Official Source",
    "method": "source_feed",
    "verified_at": null
  },
  "uncertainty": [
    "Export costs **$0.05 per 1,000 delivered traces per drain**, plus **$0.50 per GB** transferred. Multiple provider attempts still count as one request, but sending the same request to multiple drains creates separate delivery charges."
  ],
  "connected_context": {
    "meaning": "This moves Gateway observability from a Vercel inspection surface into existing telemetry systems, preserving per-request routing, retry, cost, latency, status, and deployment context without exporting prompts or completions. It enables cross-stack diagnosis and routing analysis, while explicit delivery and transfer charges make sampling and drain count part of the observability design.",
    "corpus_size": 368,
    "generated_at": "2026-08-06T10:04:23.551Z",
    "connections": [
      {
        "title": "AI Gateway logs now have a dedicated page",
        "source_name": "Vercel",
        "source_url": "https://vercel.com/changelog/ai-gateway-logs",
        "feed7_url": "https://feed7.dev/p/ai-gateway-logs-1272t5j",
        "reason": "Drains export much of the request-level evidence previously available on the dedicated logs page, enabling teams to correlate it with application telemetry and apply their own retention and alerting."
      },
      {
        "title": "AI Gateway now supports team and project spend budgets",
        "source_name": "Vercel",
        "source_url": "https://vercel.com/changelog/ai-gateway-spend-budgets-and-alerts",
        "feed7_url": "https://feed7.dev/p/ai-gateway-spend-budgets-and-alerts-1969711",
        "reason": "Trace export supplies diagnostic evidence around costs and failures, while budgets provide enforcement; together they connect observation with a hard spending boundary that applications must handle."
      },
      {
        "title": "AI Gateway adds unified fast mode support",
        "source_name": "Vercel",
        "source_url": "https://vercel.com/changelog/ai-gateway-adds-unified-fast-mode-support",
        "feed7_url": "https://feed7.dev/p/ai-gateway-adds-unified-fast-mode-support-144dq26",
        "reason": "Fast mode requires routing metadata to verify whether accelerated serving was used; exported traces make that verification and its latency-cost comparison available in external observability systems."
      },
      {
        "title": "TRACE-ROUTER: Task-Consistent and Adaptive Online Routing for Agentic AI",
        "source_name": "arXiv",
        "source_url": "https://arxiv.org/abs/2607.22465v1",
        "feed7_url": "https://feed7.dev/p/2607-22465v1-1g7nw7j",
        "reason": "TRACE-Router argues for task-level routing based on final outcomes, while these traces provide request-level routing and performance evidence; additional task and outcome correlation would still be needed to evaluate that policy."
      }
    ]
  },
  "lifecycle": "Current",
  "published_at": "2026-08-05T05:00:00.000Z",
  "modified_at": "2026-08-05T05:00:00.000Z",
  "supersedes": [],
  "expires_at": null,
  "formats": {
    "html": "https://feed7.dev/p/export-ai-gateway-traces-with-vercel-drains-0enwlg4",
    "json": "https://feed7.dev/p/export-ai-gateway-traces-with-vercel-drains-0enwlg4.json",
    "markdown": "https://feed7.dev/p/export-ai-gateway-traces-with-vercel-drains-0enwlg4.md"
  }
}