Guides
Telemetry
TriageLab can export traces, metrics, and logs over OTLP/HTTP to your own collector when a telemetry configuration file is supplied. Without one, every provider stays a no-op and nothing leaves the process.
Configuration
Section titled “Configuration”Pass --telemetry to investigate, serve, doctor, or cleanup, or set
telemetry.enabled with telemetry.config in the Helm chart (rendered
verbatim to telemetry.json in the ConfigMap):
{ "endpoint": "http://127.0.0.1:4318", "headers_env": "TRIAGELAB_OTLP_HEADERS", "sample_ratio": 1.0, "export_interval_seconds": 30}endpointis the OTLP/HTTP base URL. TriageLab appends/v1/traces,/v1/metrics, and/v1/logsitself; a base path prefix is honored. Plain HTTP is accepted on loopback or withinsecure: truefor an in-cluster collector Service; anything else must be HTTPS.headers_envnames an environment variable holding newline-separatedName: valuelines for collector authentication — headers never go through configuration files or Helm values. In the chart, supply them viatelemetry.headers.valueortelemetry.headers.secretName.sample_ratiocontrols trace sampling;export_interval_secondscontrols the batch cadence.
What is exported
Section titled “What is exported”The Go SDK’s batch processors send spans, metrics, and structured logs, with
W3C traceparent propagation into kagent MCP requests so a run traces end to
end. Export is best effort: collector failures surface on stderr and never
change investigation outcomes, and the shutdown flush is bounded to five
seconds.
Attributes are limited to fixed vocabularies — statuses, outcomes, trigger, MCP method and tool names, error kinds, collapsed route patterns — and run identifiers. Case descriptions, attachments, model prompts, tool outputs, credentials, and account names are never instrumented; phase log messages pass through the report redactor first.
This is an outbound connection from the workspace process (or pod) to your collector. Bring your own OTLP endpoint; no collector is shipped, and the loopback-only UI model is unchanged.
The export path is verified by unit tests against an in-process OTLP/HTTP collector decoding the exported protobuf for all three signals, and by a recorded live run against a real collector — see the verification record.