Add Jaeger tracing and OTEL verification to E2E#12
Open
Conversation
68f103e to
83d0afd
Compare
Adds Jaeger all-in-one container to docker-compose with OTLP HTTP receiver on port 4318 and UI on port 16686. Includes healthcheck, readiness poll in up.sh, and log routing to jaeger.log. down.sh cleans up Jaeger logs on teardown.
Adds OTel adapter (tracer.ts) implementing MoonlightTracer with withActiveSpan for W3C traceparent propagation. All E2E steps wrapped in withE2ESpan for distributed tracing. SDK tracer passed through to deposit, receive, send, and withdraw flows. Trace IDs collected and written to e2e-trace-ids.json for verify-otel consumption. Includes 429 rate limit retry logic in bundle submission.
Validates OpenTelemetry traces in Jaeger after E2E run with 16 checks: provider function-level spans, auth pipeline, bundle processing, background services, SDK step/auth/bundle/channel/account spans, and distributed tracing (shared trace IDs + CHILD_OF references). Uses hybrid query strategy: trace-by-ID for SDK and distributed tracing checks, time-windowed service query for provider app spans.
The Jaeger Alpine image doesn't include curl. Switch to wget which is available by default.
9f13369 to
67ab523
Compare
- Add step-by-step Jaeger UI navigation guide to e2e/README.md - Add Jaeger to architecture diagram and services list - Update repo README with Jaeger stage, verify-otel command, and troubleshooting
Replaces local path import (../../moonlight-sdk/mod.ts) with jsr:@moonlight/moonlight-sdk@^0.7.0 and removes transitive dependency entries that JSR resolves automatically. Requires SDK 0.7.0+ to be published with tracing support.
67ab523 to
15e3472
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker-compose.ymlwith healthcheck, and toup.sh/down.shwith readiness poll and log routingtracer.ts) implementing SDK'sMoonlightTracerwithwithActiveSpanfor W3CtraceparentpropagationwithE2ESpanfor distributed tracing; passessdkTracerthrough deposit/send/receive/withdraw flowsauth.*andbundle.*spans with 429 retry logic in bundle submissione2e-trace-ids.jsonfor deterministic verificationverify-otel.tswith 16 checks using hybrid query strategy (trace-by-ID + time-windowed)e2e/README.mdjsr:@moonlight/moonlight-sdk@^0.7.0Test plan
./up.shstarts Jaeger with readiness check before providerdeno task e2epasses and writese2e-trace-ids.jsondeno task verify-otelpasses 16/16 checks./down.shcleans up Jaeger container and log file