OpenTelemetry for the Claude Code of every session #4
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/claude-otel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Based on #3 (
feat/session-resume), which is not merged; retarget to main after it merges.New
[telemetry]table:endpoint,protocol(defaulthttp/protobuf; alsohttp/json,grpc),resource_attributes(values may use{agent}/{session}). The Job putsOTEL_EXPORTER_OTLP_ENDPOINT,_PROTOCOLandOTEL_RESOURCE_ATTRIBUTESin each pod. The host already sets claudeacpExportTelemetry(metrics and logs); it now also setsCLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1andOTEL_TRACES_EXPORTER=otlpwhen the pod's environment names an OTLP endpoint, keeping values already set. No endpoint: no OTEL variable in the pod, nothing exported.The city must provide:
[telemetry] endpointin akephalos.toml (and optionallyresource_attributes), and a collector reachable from the session pods. Collector authentication headers are not supported.Tests: the Job's OTEL environment (with and without endpoint, protocol, escaped attributes); the environment Claude receives from the host with and without an endpoint; config validation.
9011fc12adcb71d1e9fdcb71d1e9fd3f8569ec07