Home / Companies / Highlight.io / Blog / Post Details
Content Deep Dive

Learn how to leverage OpenTelemetry to find and fix errors and performance issues in your Next.js applications.

Blog post from Highlight.io

Post Details
Company
Date Published
Author
Chris Griffing
Word Count
1,446
Company Posts That Month
3
Language
-
Hacker News Points
-
Summary

Integrating OpenTelemetry into Next.js applications enhances observability by providing insights into application behavior, and this can be achieved through Vercel's @vercel/otel package or a manual setup. The integration process involves configuring Next.js to push data to a collector, with the instrumentation needing to be explicitly enabled for versions before Next.js 15. Users can utilize default spans available for app and page routers or create custom spans for additional insights. The @vercel/otel package offers easy setup and compatibility across various environments, while manual integration requires specific configurations for Node.js environments and is not compatible with Edge runtime. Highlight further facilitates observability by offering its own scalable collector and additional features such as logging, error tracing, and session replay, which ties client-side events to server-side traces while ensuring data privacy. OpenTelemetry serves as a crucial vendor-agnostic framework, reducing the need for rewriting when switching providers and maintaining a flexible telemetry integration.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
OpenTelemetry 28 282 40 19 -33%
Observability 5 1,330 232 85 -17%
Edge Computing 3 28 18 14 -40%