Sigrid Huemer
summary
Sentry’s Next.js module is a working SDK that captures client and server errors and produces connected traces by fixing OpenTelemetry’s ESM limits: OpenTelemetry relies on require-style monkey patching, so the solution uses ESM loader hooks and an entry-point rewrite via a Rollup plugin that injects a dynamic import entry shim. It auto-uploads source maps during build, splits config into build/client/server, restores backend traces without requiring users to add node flags, and ships with opt-out and a planned CLI setup wizard.
AI-written summary · about
chapters (12)
- 0:00Introduction to SDK development
- 1:25What are SDKs and their purpose
- 3:12Building the Sentry Next SDK
- 5:41Client-side monitoring setup
- 8:35Challenges with server-side monitoring
- 9:40Understanding OpenTelemetry
- 11:04CJS vs ESM module loading
- 13:35ESM limitations with OpenTelemetry
- 15:47Solving backend traces with import hooks
- 17:58Connecting client and server traces
- 19:02Future of the SDK and roadmap
- 20:28Q&A session
