Skip to content

Add testnet E2E with Grafana Cloud OTEL verification - #15

Merged
AquiGorka merged 1 commit into
mainfrom
feat/testnet-otel-verification
Mar 17, 2026
Merged

Add testnet E2E with Grafana Cloud OTEL verification#15
AquiGorka merged 1 commit into
mainfrom
feat/testnet-otel-verification

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

Summary

  • Adds testnet/ directory with E2E script and OTEL verification for testnet
  • Reuses e2e/ modules (auth, bundle, deposit, send, receive, withdraw, tracer) with testnet config
  • Deterministic trace verification via trace-by-ID lookups against Grafana Cloud Tempo
  • Background service spans verified via targeted TraceQL search

Usage

cd testnet
# Run E2E against testnet provider
OTEL_DENO=true OTEL_SERVICE_NAME=moonlight-e2e \
  OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp-gateway-prod-ca-east-0.grafana.net/otlp \
  OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf \
  OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic <auth>" \
  deno run --allow-all main.ts

# Verify traces in Grafana Cloud
TEMPO_URL=https://tempo-prod-13-prod-ca-east-0.grafana.net/tempo \
  TEMPO_AUTH="Basic <auth>" \
  deno run --allow-all verify-otel.ts

Test plan

  • E2E passes against testnet provider
  • 16/16 OTEL verification checks pass

- Testnet config (config.ts) with testnet RPC, friendbot, and provider URLs
- Main E2E script (main.ts) reusing e2e/ modules against testnet
- Deterministic OTEL verification (verify-otel.ts) using trace-by-ID
  lookups against Grafana Cloud Tempo, with targeted TraceQL search
  for background service spans
@AquiGorka
AquiGorka force-pushed the feat/testnet-otel-verification branch from f784af8 to 0bb8299 Compare March 17, 2026 18:49
@AquiGorka
AquiGorka merged commit fa7b3e1 into main Mar 17, 2026
1 check passed
@AquiGorka
AquiGorka deleted the feat/testnet-otel-verification branch March 17, 2026 18:56
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