Skip to content

Settings and env surface for OTEL export (CL-5175) - #306

Merged
TheGreatAxios merged 2 commits into
mainfrom
stack/w2b-cl-5175-otel-settings
Aug 4, 2026
Merged

Settings and env surface for OTEL export (CL-5175)#306
TheGreatAxios merged 2 commits into
mainfrom
stack/w2b-cl-5175-otel-settings

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Stack

PerfTrace stack 3a/8 — base: stack/w2a-cl-5171-auto-spans

Linear

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

  • OTEL config tests green
  • Review PASS

Merge note

Merge after CL-5171 auto-spans PR.

@linear-code

linear-code Bot commented Aug 4, 2026

Copy link
Copy Markdown

CL-5175

@TheGreatAxios
TheGreatAxios force-pushed the stack/w2a-cl-5171-auto-spans branch from 1eb6a74 to ddb9c72 Compare August 4, 2026 16:21
@TheGreatAxios
TheGreatAxios force-pushed the stack/w2b-cl-5175-otel-settings branch from d37ef42 to 849b627 Compare August 4, 2026 16:22
@TheGreatAxios
TheGreatAxios force-pushed the stack/w2a-cl-5171-auto-spans branch from ddb9c72 to c3442c6 Compare August 4, 2026 18:10
@TheGreatAxios
TheGreatAxios force-pushed the stack/w2b-cl-5175-otel-settings branch from 849b627 to fbc63c7 Compare August 4, 2026 18:10
@TheGreatAxios
TheGreatAxios force-pushed the stack/w2a-cl-5171-auto-spans branch from c3442c6 to 073d6de Compare August 4, 2026 22:42
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
TheGreatAxios force-pushed the stack/w2b-cl-5175-otel-settings branch from fbc63c7 to 339e7f9 Compare August 4, 2026 22:44
@TheGreatAxios
TheGreatAxios changed the base branch from stack/w2a-cl-5171-auto-spans to main August 4, 2026 22:44
@TheGreatAxios
TheGreatAxios merged commit 94268a8 into main Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant