Skip to content

feat(telemetry): add opt-in OpenTelemetry tracing for the Node BFF - #329

Merged
ety001 merged 1 commit into
nextfrom
feat/opentelemetry
Aug 25, 2026
Merged

feat(telemetry): add opt-in OpenTelemetry tracing for the Node BFF#329
ety001 merged 1 commit into
nextfrom
feat/opentelemetry

Conversation

@ety001

@ety001 ety001 commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Add server-side OpenTelemetry (OTLP HTTP) so wallet API requests become the parent span for jussi/conveyor traces via W3C traceparent on steem-js fetch.
  • Keep tracing off unless WALLET_TELEMETRY_OTLP_ENDPOINT is set; fail open, suppress repeated export errors, and skip /api/health plus /.well-known/healthcheck.json.
  • Align env names with jussi/conveyor (WALLET_TELEMETRY_*, OpenObserve path/headers). Companion orchestration change enables the same collector on the dev wallet EB env.

Test plan

  • pnpm type-check && pnpm lint && pnpm test (already green locally: 565 tests)
  • Confirm local/dev without WALLET_TELEMETRY_OTLP_ENDPOINT does not initialize the SDK and does not spam logs
  • With OpenObserve env set, restart wallet and look for [telemetry] OpenTelemetry tracing initialized
  • Hit /api/query/accounts or a broadcast; in OpenObserve the trace should show walletjussi (and conveyor on recovery)
  • Confirm /api/health and /.well-known/healthcheck.json do not create spans
  • Confirm signed tx / memo / WIF are not present as span attributes

Wallet is now the parent of jussi/conveyor RPC calls; without a server
span those traces cannot be attributed to a wallet API. Keep the SDK
off unless an OTLP endpoint is set so empty collectors cannot flood logs.
@ety001
ety001 merged commit 47bb0ab into next Aug 25, 2026
2 of 3 checks passed
@ety001
ety001 deleted the feat/opentelemetry branch August 25, 2026 20:42
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