You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(server): allow custom headers on OTLP export (T3CODE_OTLP_HEADERS) #4040
I'm trying to export t3code traces to telemetry.dev. Its OTLP endpoint requires auth on every request:
export T3CODE_OTLP_TRACES_URL=https://ingest.telemetry.dev/v1/traces
export T3CODE_OTLP_METRICS_URL=https://ingest.telemetry.dev/v1/metrics
# ...but there is no way to send the required header:# Authorization: Bearer td_live_...
The exporters can only talk to unauthenticated endpoints. apps/server/src/observability/Layers/Observability.ts calls OtlpTracer.make and OtlpMetrics.layer with just url, exportInterval, and resource. Both APIs accept a headers option, but nothing in apps/server/src/cli/config.ts exposes it, and Effect's OTEL_EXPORTER_OTLP_HEADERS env support only applies to layerFromConfig, which isn't used here.
This isn't specific to telemetry.dev — Honeycomb, Grafana Cloud, and Dash0 all authenticate with a header too. The local Grafana LGTM flow in the docs works because it skips auth entirely. For any hosted backend, the only workaround today is running a local OTel Collector whose sole job is injecting the header:
Activity