Skip to content

feat(observability): add OpenTelemetry APM instrumentation (#291)#375

Merged
AnnabelJoe merged 2 commits into
AnnabelJoe:mainfrom
devSoniia:issue-291-opentelemetry-apm
May 28, 2026
Merged

feat(observability): add OpenTelemetry APM instrumentation (#291)#375
AnnabelJoe merged 2 commits into
AnnabelJoe:mainfrom
devSoniia:issue-291-opentelemetry-apm

Conversation

@devSoniia
Copy link
Copy Markdown
Contributor

Closes #291

  • New src/instrumentation.ts: Next.js instrumentation hook with OTLP HTTP exporter, HttpInstrumentation, FetchInstrumentation
  • Enables experimental.instrumentationHook in next.config.ts
  • Adds pinned @opentelemetry/* dependencies

devSoniia and others added 2 commits May 28, 2026 15:01
Closes AnnabelJoe#291

- Add src/instrumentation.ts: Next.js instrumentation hook that initialises
  the OpenTelemetry Node SDK with OTLP HTTP exporter
- Instruments HTTP requests and fetch calls (covers Stellar + Supabase)
- Service name/version set from env vars with sensible defaults
- Enable experimental.instrumentationHook in next.config.ts
- Add @opentelemetry/* dependencies (pinned versions)

Configure via env vars:
  OTEL_EXPORTER_OTLP_ENDPOINT — OTLP collector URL (Grafana Cloud, Honeycomb)
  OTEL_EXPORTER_OTLP_HEADERS  — auth headers
  OTEL_SERVICE_NAME            — defaults to solarproof-api
@AnnabelJoe AnnabelJoe merged commit 3cab7b5 into AnnabelJoe:main May 28, 2026
6 of 12 checks passed
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@devSoniia Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up application performance monitoring (APM) with OpenTelemetry

2 participants