Skip to content

Commit 615164a

Browse files
docs(k8s): document auto-TLS OTLP behavior + P0-2 historical note
Companion to api / worker / provisioner commits that fix OTel distributed tracing in prod (BUGHUNT-2026-05-20-T21 P0-2). The tracer.go fix is code-only — the configmap key behaviour is unchanged — but the comment on OTEL_EXPORTER_OTLP_ENDPOINT used to claim only `host:port` (no scheme) was accepted. The new helper accepts either form, strips the scheme, and uses it to auto-select TLS vs plaintext. Document the new contract here and pin a brief reference to the bug so the next reader who edits this finds the rationale. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d30455d commit 615164a

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

k8s/configmap.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,21 @@ metadata:
55
namespace: instant
66
data:
77
PORT: "8080"
8-
# OpenTelemetry OTLP gRPC (host:port, no scheme). Empty = tracing disabled (noop).
8+
# OpenTelemetry OTLP gRPC endpoint. Accepts either a bare `host:port` or
9+
# a full `https://host:port` / `http://host:port` URL — the InitTracer
10+
# helper strips the scheme and uses it to auto-select TLS vs plaintext.
11+
# Empty = tracing disabled (noop). In prod each Deployment overrides this
12+
# via its own `env:` entry to "https://otlp.nr-data.net:4317" (US) or
13+
# "https://otlp.eu01.nr-data.net:4317" (EU). NR ingest also requires
14+
# NEW_RELIC_LICENSE_KEY to be set in instant-secrets / instant-infra-
15+
# secrets; without it InitTracer logs telemetry.nr_license_missing WARN
16+
# and exports will be rejected by NR.
17+
#
18+
# 2026-05-20 P0-2: prior tracer.go used WithInsecure() against the TLS
19+
# endpoint with no api-key header — every export failed silently and
20+
# trace_id was empty on every log line. The TLS-by-scheme + api-key
21+
# header pair in tracer.go is the fix; the configmap behaviour did NOT
22+
# change.
923
OTEL_EXPORTER_OTLP_ENDPOINT: ""
1024
OTEL_SERVICE_NAME: "instant-api"
1125
ENVIRONMENT: development

0 commit comments

Comments
 (0)