Configure the exporter
Read the current configuration withGET /settings/agent-otel and update it with PATCH /settings/agent-otel:
agent_otel_headers instead.
Exporter headers
Supplyagent_otel_headers as a name-to-value map, such as an Authorization header for your collector. Tracecat encrypts headers at rest and attaches them to outbound telemetry in the OTLP gateway, outside the agent sandbox, so sandboxed agent code never reads a collector credential.
Omitting agent_otel_headers from an update leaves the stored headers unchanged; send an empty object to clear them.
Privacy controls
Telemetry can carry prompt and tool content, so decide what leaves your deployment before you enable it. Each control below follows Claude Code’s own default when you leave it unset:log_user_promptsincludes user prompt content in log events.log_tool_detailsincludes tool parameters and input arguments.log_tool_contentincludes tool input and output content.metrics_include_session_idattaches the Claude Code session identifier to metrics.metrics_include_versionattaches the Claude Code version to metrics.metrics_include_account_uuidattaches the authenticated account identifier to metrics.
Resource attributes and tuning
Setresource_attributes to a string map that Tracecat attaches to every exported signal. Use it to separate Tracecat telemetry from the rest of your collector’s traffic:
Leave a field unset to keep the Claude Code default.
Platform override for self-hosted deployments
Self-hosted operators can pin every organization to one collector. SetTRACECAT__AGENT_OTEL_PLATFORM_OVERRIDE_CONFIG on the agent executor to a JSON object with the same fields as the organization configuration:
enabled to false to disable telemetry platform-wide. Leave the variable unset so organization settings apply.
Configure headers separately in TRACECAT__AGENT_OTEL_PLATFORM_OVERRIDE_HEADERS, a JSON object of header name to value. Tracecat rejects a headers key inside the config variable:
Related pages
- See Organization audit logs to stream user and service-account activity to your SIEM.
- See Platform audit logs to capture administration above the organization boundary.
- See Architecture for the sandbox and gateway boundaries that agent telemetry crosses.