Skip to main content
When building complex AI applications, a single user action might trigger multiple sequential or parallel LLM calls (e.g. an agentic workflow using LangChain or AutoGen). MetrixLLM supports passing standard tracing headers to correlate your application’s internal traces with the LLM requests logged in the gateway.

Supported tracing headers

When making a request to the MetrixLLM gateway, you can optionally include the following HTTP headers:

Example usage

Viewing traces

When these headers are provided, the gateway automatically indexes them. In the Request Logs dashboard, requests sharing the same metrix-session-id are grouped together. You can click on a session to view the entire span tree, making it easy to debug multi-step agent workflows and calculate the total cost and latency of a single session.