Skip to content

docs(testnet): fix OTLP endpoint + document trace IDs path - #95

Merged
AquiGorka merged 2 commits into
mainfrom
docs/fix-testnet-readme-otlp-and-trace-ids
May 21, 2026
Merged

docs(testnet): fix OTLP endpoint + document trace IDs path#95
AquiGorka merged 2 commits into
mainfrom
docs/fix-testnet-readme-otlp-and-trace-ids

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

Summary

Two corrections to testnet/README.md that caused suites 2 and 4 to silently fail when followed literally:

  1. OTLP endpoint example showed .../otlp/v1/traces. Deno's HTTP/protobuf OTLP exporter appends /v1/traces to whatever endpoint is set, so the SDK was shipping to .../otlp/v1/traces/v1/traces and getting a silent 404. Result: the flow reports success, but suites 2/4 report E2E step spans (e2e.*): 0 (expected >= 6). The working value is the BASE .../otlp.

  2. Trace IDs path mismatch. lib/client/tracer.ts defaults TRACE_IDS_PATH to CWD-relative e2e-trace-ids.json; lifecycle/verify-otel.ts reads from e2e/e2e-trace-ids.json (relative to its own file). Running suite 3 from local-dev/ writes to the wrong location — suite 4 then reads a stale file (or the "trace not found" error). Pinned E2E_TRACE_IDS_PATH=e2e/e2e-trace-ids.json in the suite 3 run command and documented it in the env-vars table. Suite 1 dodges this because run-tempo.sh cd's into testnet/ first.

Test plan

  • Suite 1 + 2 with the corrected endpoint: 23/23 OTEL checks pass (SDK ↔ provider ↔ council trace IDs linked)
  • Suite 3 + 4 with E2E_TRACE_IDS_PATH=e2e/e2e-trace-ids.json: 23/23 OTEL checks pass

AquiGorka added 2 commits May 21, 2026 10:51
- OTEL_EXPORTER_OTLP_ENDPOINT example was `.../otlp/v1/traces`; Deno's
  HTTP/protobuf exporter appends `/v1/traces` itself, so the working
  value is the BASE `.../otlp`. With the wrong one suite 2/4 fail with
  zero SDK spans even though the flow reports success.
- Suite 3 writes trace IDs to a CWD-relative file but suite 4 reads
  from `e2e/e2e-trace-ids.json`. Pin `E2E_TRACE_IDS_PATH` in the run
  command and document it in the env-vars table.
Re-pad env-vars table after adding the wider E2E_TRACE_IDS_PATH row.
@AquiGorka
AquiGorka merged commit cae4ef2 into main May 21, 2026
7 checks passed
@AquiGorka
AquiGorka deleted the docs/fix-testnet-readme-otlp-and-trace-ids branch May 21, 2026 14:09
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