Skip to content

feat: distributed tracing with OpenTelemetry (issue #22)#201

Open
luhrhenz wants to merge 2 commits intoSynapse-bridgez:developfrom
luhrhenz:feature/issue-22-opentelemetry
Open

feat: distributed tracing with OpenTelemetry (issue #22)#201
luhrhenz wants to merge 2 commits intoSynapse-bridgez:developfrom
luhrhenz:feature/issue-22-opentelemetry

Conversation

@luhrhenz
Copy link
Copy Markdown
Contributor

@luhrhenz luhrhenz commented Mar 25, 2026

closes #22

  • Add opentelemetry, opentelemetry_sdk, opentelemetry-otlp, tracing-opentelemetry deps
  • Add src/telemetry.rs: init_tracer() sets up OTLP batch exporter (or no-op if OTLP_ENDPOINT unset), installs W3C TraceContext propagator
  • Wire OTel layer into tracing-subscriber registry in main()
  • Add OTLP_ENDPOINT to Config (optional env var)
  • Instrument HorizonClient.get_account with #[instrument] + W3C traceparent header injection
  • Instrument webhook handlers: callback, handle_webhook, get_transaction, transaction_callback
  • Instrument TransactionProcessor: process_transaction, requeue_dlq
  • Flush tracer on clean server shutdown

- Add opentelemetry, opentelemetry_sdk, opentelemetry-otlp, tracing-opentelemetry deps
- Add src/telemetry.rs: init_tracer() sets up OTLP batch exporter (or no-op if OTLP_ENDPOINT unset), installs W3C TraceContext propagator
- Wire OTel layer into tracing-subscriber registry in main()
- Add OTLP_ENDPOINT to Config (optional env var)
- Instrument HorizonClient.get_account with #[instrument] + W3C traceparent header injection
- Instrument webhook handlers: callback, handle_webhook, get_transaction, transaction_callback
- Instrument TransactionProcessor: process_transaction, requeue_dlq
- Flush tracer on clean server shutdown
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