Skip to content
agentgateway has joined the Agentic AI FoundationLearn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

SaaS platform

Page as Markdown

Export agentgateway traces to a cloud-hosted SaaS observability platform such as Langfuse over HTTPS.

Cloud-hosted observability platforms accept OTLP traces over HTTPS and authenticate requests with an Authorization header. The steps below use Langfuse as an example, but the same pattern applies to any OTLP-over-HTTP SaaS backend. Swap in your platform’s endpoint and credentials.

Note

For platforms that collect full prompt and response data (request/response logging, cost tracking, evals), see the LLM Observability integrations instead.

Before you begin

Create a Langfuse account at https://cloud.langfuse.com and create a project. In the dashboard, go to Settings → API Keys and create a key pair. Then base64-encode <public-key>:<secret-key>.

echo -n "<public-key>:<secret-key>" | base64

Keep the encoded string — you will use it as the Authorization header value.

Configure tracing

Add the following tracing configuration to your config.yaml. Replace <base64-encoded-credentials> with the string you generated above.

# yaml-language-server: $schema=https://agentgateway.dev/schema/config
frontendPolicies:
  tracing:
    host: us.cloud.langfuse.com:443
    protocol: http/protobuf
    randomSampling: true
    policies:
      backendTLS: {}
      requestHeaderModifier:
        set:
          Authorization: "Basic <base64-encoded-credentials>"

Use eu.cloud.langfuse.com if your project is in the EU region.

Verify

Send a request through agentgateway and then check Traces in the Langfuse dashboard. Traces typically appear within a few seconds.

Other SaaS backends

The same pattern works for other OTLP-over-HTTPS backends — adjust host, protocol, and the auth header to match your platform.

PlatformHostProtocolAuth header
Langfuse (US)us.cloud.langfuse.com:443http/protobufAuthorization: Basic <base64>
Langfuse (EU)eu.cloud.langfuse.com:443http/protobufAuthorization: Basic <base64>
Grafana Cloud Tempo<your-instance>.grafana.net:443http/protobufAuthorization: Basic <base64>
Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.