Settings and env surface for OTEL export (CL-5175) - #306
Merged
Conversation
TheGreatAxios
force-pushed
the
stack/w2a-cl-5171-auto-spans
branch
from
August 4, 2026 16:21
1eb6a74 to
ddb9c72
Compare
TheGreatAxios
force-pushed
the
stack/w2b-cl-5175-otel-settings
branch
from
August 4, 2026 16:22
d37ef42 to
849b627
Compare
TheGreatAxios
force-pushed
the
stack/w2a-cl-5171-auto-spans
branch
from
August 4, 2026 18:10
ddb9c72 to
c3442c6
Compare
TheGreatAxios
force-pushed
the
stack/w2b-cl-5175-otel-settings
branch
from
August 4, 2026 18:10
849b627 to
fbc63c7
Compare
TheGreatAxios
force-pushed
the
stack/w2a-cl-5171-auto-spans
branch
from
August 4, 2026 22:42
c3442c6 to
073d6de
Compare
Resolves CL-5175: otel-config.ts parses and validates endpoint, headers, service name, and resource attributes from settings + env; fails closed on invalid config with a stable OTEL_CONFIG_INVALID error. otelConfigForDump exposes header names only so secrets never reach privacy-strict dumps. Docs cover Phoenix, PostHog OTEL, and generic collectors. The actual OTLP transport is a follow-up (CL-5173).
Resolve serviceName as env > settings > attrs["service.name"] > default, then always write resourceAttributes["service.name"] so the two never diverge. Redact high-risk resource attr values in otelConfigForDump. Document Phoenix cloud as a base OTLP URL (exporter appends /v1/traces).
TheGreatAxios
force-pushed
the
stack/w2b-cl-5175-otel-settings
branch
from
August 4, 2026 22:44
fbc63c7 to
339e7f9
Compare
TheGreatAxios
changed the base branch from
stack/w2a-cl-5171-auto-spans
to
main
August 4, 2026 22:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack
PerfTrace stack 3a/8 — base:
stack/w2a-cl-5171-auto-spansLinear
https://linear.app/abklabs/issue/CL-5175/settings-and-env-surface-for-otel-export
Summary
Opt-in OTEL settings/env surface (endpoint, headers, enabled flag). Disabled by default — zero network when off.
Test evidence
Merge note
Merge after CL-5171 auto-spans PR.