What problem does it solve?
Next.js apps often require robust observability to diagnose performance, reliability, and user experience issues. Maple's OpenTelemetry style provides a framework-backed approach to instrument Next.js projects, enabling end-to-end traces, metrics, and logs that align with Maple ingest.
Core Features & Use Cases
- Framework-specific bootstrap: use the Vercel OpenTelemetry bootstrap to wire Next.js routes, API routes, and edge functions into Maple.
- Inline configuration: configure service name, environment attributes, and maple ingest endpoint directly in instrumentation code for predictable behavior across deploys.
- Compatibility and guidance: supports both Next.js deployments on Vercel and self-hosted environments with native OpenTelemetry APIs, avoiding ad-hoc provider changes.
Quick Start
Set up Maple instrumentation by creating an instrumentation.ts file and calling the inline registerOTel function with the Maple endpoint and ingest key.