Skip to main content
Available via: Cloudflare’s built-in OpenTelemetry exporter (any language calling through the gateway). This is not a Zespan SDK wrapper — see Send traces from any OTel-instrumented app for how the underlying endpoint works. Configuration is dashboard-based, not code.
If you already route LLM traffic through Cloudflare AI Gateway, its built-in OpenTelemetry exporter automatically emits a trace span for every request the gateway processes — model, provider, tokens, cost, prompt, and completion — with no changes to the apps calling it.

Setup

1

Open your gateway's Settings

In the Cloudflare dashboard, go to your AI Gateway, then the Settings tab.
2

Add an OTEL exporter

Add a new exporter and set:
  • URL: https://api.zespan.com/v1/traces
  • Headers: x-api-key: zsp_...
  • Content type: json (Zespan accepts both json and protobufjson needs no extra setup)
3

Save

Every subsequent request through this gateway is exported as an OTel trace.

What gets captured

Cloudflare AI Gateway’s spans already carry model, provider, token usage, cost, and prompt/completion content, mapped through the standard OpenTelemetry GenAI semantic conventions Zespan reads. As with any gateway integration, every request routed through it is traced regardless of the calling app’s language or framework.