> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare AI Gateway

> Send traces from Cloudflare AI Gateway to Phoenix by exporting the gateway's OpenTelemetry spans or by instrumenting your app with OpenInference.

![](https://storage.googleapis.com/arize-phoenix-assets/assets/images/phoenix-docs-images/cloudflare-ai-gateway-card.avif)

> **[Cloudflare AI Gateway](https://developers.cloudflare.com/ai-gateway/)**
>
> **Website**: [](https://developers.cloudflare.com/ai-gateway/)

[Cloudflare AI Gateway](https://developers.cloudflare.com/ai-gateway/) proxies requests to your LLM
provider. You can send its traces to Phoenix two ways:

* **Export gateway spans**: the gateway emits an OpenTelemetry span for every request it proxies,
  with no code in your application.
* **Instrument your app**: trace the OpenAI client with OpenInference so Phoenix captures the full
  input and output messages, while your app still routes requests through the gateway.

> **[Cloudflare AI Gateway Tracing](/docs/phoenix/integrations/llm-providers/cloudflare-ai-gateway/cloudflare-ai-gateway-tracing.md)**
