Skip to main content

Logging and tracing

You're reading AI Gateway 2026.10.0. The newest release is 1.2.0. Go to the newest release

Three different questions arise when gateway traffic behaves unexpectedly, and each one needs a different record. Was the gateway itself healthy? What did the request and the response actually contain? Where in the chain of hops did the latency or the error appear?

The pages in this section answer one question each:

PageWhat it covers
Gateway logsConfigure centralized log collection for API Platform AI Gateway using Fluent Bit, OpenSearch, and alternative logging stacks.
Log requests and responsesRecord the payload and headers of traffic passing through the AI Gateway, as a log line per request or through a policy on chosen operations.
TracingConfigure distributed tracing for API Platform AI Gateway using OpenTelemetry and Jaeger, with support for cloud-native tracing backends.

Gateway logs are the runtime's own output, so they tell you how the gateway is behaving. Request and response logging captures the traffic content, so it tells you what a caller sent and what a model returned. Tracing follows one request across every hop it makes, so it tells you where time went.

How logging and tracing differ from analytics​

These three records serve investigation: you reach for them when you have a specific request or a specific incident in mind. Analytics serves the aggregate question instead — token consumption, cost, and traffic patterns over a period, across callers. Configure both. Neither substitutes for the other.

Was this page helpful?