Skip to main content

Availability

Agent Call Tracing is available from Tyk AI Studio 2.3.0. AI Studio can send finished turns to OpenTelemetry (OTLP) backends. For how tracing works, refer to Agent Call Tracing.

Configure the Exporters

  1. Create a YAML file with an exporters: list. For the fields, refer to Exporter Fields.
  2. Set AGENT_TRACING_EXPORTERS_FILE to the path of the file.
  3. Restart AI Studio.
If the exporters file is not valid, AI Studio turns off the export. Tracing continues.

Exporter Fields

AI Studio refuses an exporter that sends credentials over http:// or with tls.insecure, unless allow_insecure_credentials: true is set. Use env: or file: references for secrets. Do not put secrets in the file.

Presets

How the Export Runs

  • One AI Studio replica exports.
  • AI Studio exports a turn one time, after the turn closes. It stores spans that arrive later, but it does not send them again.
  • AI Studio exports metadata only. It does not export prompts, responses, tool arguments, or tool results.
  • The attributes follow the OpenTelemetry GenAI semantic conventions 1.41 (genai-1.41). Tyk attributes use the tyk. prefix, such as tyk.app.id, tyk.session.id, and tyk.correlation.confidence.
  • During the export, the gateways do not send their own live proxy span for a captured call. Thus, each call appears in the backend one time.
  • An Edge Gateway can send its own OpenTelemetry spans to a different collector than the AI Studio export. Then set AGENT_TRACING_KEEP_LIVE_SPAN to true on that Edge Gateway to keep its live span. Do not set it if both send to the same collector, or each call appears two times.
For the OpenTelemetry settings of the gateway, refer to Observability.

Privacy and Erasure

The end user goes to each OTLP exporter as user.id, including third-party backends such as Langfuse and Datadog. AGENT_TRACING_EXPORT_USER_ID_MODE controls the value: A pseudonym is still personal data. A person with the key, or a person who can hash candidate values, can find the end user. gen_ai.conversation.id contains the session id that the client declared, without changes. A purge or an erasure does not delete spans that AI Studio already exported. Send erasure requests to your OTLP backends too.