Availability
Agent Call Tracing is available from Tyk AI Studio 2.3.0.
Request headers are optional. They let the gateway group calls exactly, instead of inferring the groups. Refer to Sessions, Turns, and Correlation.
Tyk Headers
The gateway ignores a header that is sent two times or that has an incorrect value.
By default, the gateway removes the
X-Tyk-* tracing headers before it sends the request upstream. To keep them, set AGENT_TRACING_FORWARD_TYK_HEADERS to true.
Do not put personal data, such as an email address, in a session id. Refer to Privacy and Erasure.
This example declares a session and an agent path:
Compatible Headers
The gateway also reads the headers of other AI gateways. Clients that send these headers need no changes.
The gateway also reads these sources:
- These W3C baggage keys:
session.id,gen_ai.conversation.id,user.id,gen_ai.agent.name,tyk.agent.parent - The request body fields
conversation,metadata.session_id, anduser - The session headers of Claude Code 2.1.0 and later, Codex CLI 0.160.0 and later, and OpenCode 1.18.0 and later