Skip to content

Tracing: laptop Grafana → Tempo on the phone; storefront-dev exports OTLP (v0.1.4 step 2) - #142

Merged
MIERAI merged 1 commit into
mainfrom
tracing-laptop-dev
Nov 23, 2026
Merged

MIERAI merged 1 commit into
mainfrom
tracing-laptop-dev

Conversation

@MIERAI

@MIERAI MIERAI commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Step 2 of the slo-platform v0.1.4 rollout (step 1 = #141, both roots run v0.1.4 since 08:53 UTC): traces from storefront-dev to Grafana Tempo on the phone — the independent third party that observes production but is never in its request path.

  • platform.yaml clusters.laptop.components.tracing: enabled, external.queryUrl: http://100.80.225.15:3200 (the phone, tailnet; same address as the existing Prometheus · phone datasource), external.endpoint: …:4318 → the laptop Grafana gets a Tempo datasource (uid tempo).
  • storefront dev only: web + api (overlay patch) and worker (new chart value extraEnv, default []; set in values-dev.yaml) get OTEL_EXPORTER_OTLP_ENDPOINT=http://100.80.225.15:4318 and OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=dev,k8s.namespace.name=storefront-dev (OpenTelemetry tracing in web, api and worker (off without an OTLP endpoint) storefront#7; dev images ccab018 / aff0c9f contain it). Staging / prod: later through the normal promotion.
  • Phone down: the Go SDK's batch span processor exports in the background and drops spans when its queue (2048) is full; requests are not slowed or failed.

Render (product render.py v0.1.4, main before / this branch after):

  • laptop: 28 Applications; only storefront-dev (+4 lines each in web and api: the two env vars) and storefront-worker-dev (+4: the two env vars) differ — every prod / staging Application byte-identical. Root: only platform-monitoring's grafana.datasources."tempo.yaml" (+9 lines); nothing else.
  • lab: 22 Applications and root byte-identical (lab does not run storefront; tracing only on the laptop).

🤖 Generated with Claude Code

…-dev exports OTLP (step 2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Rendered diff (as Argo CD renders: kustomize / Helm, against origin/main)

storefront-dev (+8 / -0)
@@ -49,6 +49,10 @@
       - env:
         - name: FAULTS_DIR
           value: /etc/faults
+        - name: OTEL_EXPORTER_OTLP_ENDPOINT
+          value: http://100.80.225.15:4318
+        - name: OTEL_RESOURCE_ATTRIBUTES
+          value: deployment.environment.name=dev,k8s.namespace.name=storefront-dev
         image: ghcr.io/mierai/storefront-api:aff0c9f
         livenessProbe:
           failureThreshold: 6
@@ -127,6 +131,10 @@
               name: postgres-app
         - name: CATALOG_URL
           value: http://catalog.catalog-dev.svc:8080
+        - name: OTEL_EXPORTER_OTLP_ENDPOINT
+          value: http://100.80.225.15:4318
+        - name: OTEL_RESOURCE_ATTRIBUTES
+          value: deployment.environment.name=dev,k8s.namespace.name=storefront-dev
         image: ghcr.io/mierai/storefront-web:ccab018
         livenessProbe:
           failureThreshold: 6
storefront-worker-dev (+4 / -0)
@@ -22,6 +22,10 @@
             - name: DATABASE_URL
               valueFrom: { secretKeyRef: { name: postgres-app, key: uri } }
             - { name: WORK_TIME, value: "100ms" }
+            - name: OTEL_EXPORTER_OTLP_ENDPOINT
+              value: http://100.80.225.15:4318
+            - name: OTEL_RESOURCE_ATTRIBUTES
+              value: deployment.environment.name=dev,k8s.namespace.name=storefront-dev
           # Probe timeouts tolerate slowness (experiment api-slow-v3): with the default 1s, a 600ms network delay killed every
           # api pod (liveness) and took it out of the Service (readiness) — slowness became an outage. Liveness only detects a
           # stuck process: 5s x 6 (2 min) before a restart.

@MIERAI
MIERAI merged commit 0a9194b into main Nov 23, 2026
2 checks passed
@MIERAI
MIERAI deleted the tracing-laptop-dev branch November 23, 2026 08:57
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