next.js
0e1463f9 - Telemetry: track failed builds and build bundler usage (#77943)

Commit
342 days ago
Telemetry: track failed builds and build bundler usage (#77943) This: - Tracks build failures as a separate event, `NEXT_BUILD_FAILED` - Added `bundler` property to both `NEXT_BUILD_COMPLETED` and `NEXT_BUILD_FAILED` - Requires a server-side update Alternatives considered: Considered adding a `success: boolean` property to the existing `EventBuildCompleted`. There are a few issues with this: - Expands the semantics of the existing event. This may have unintended consequences if we don’t change how we report on these events to filter success state - This event requires page paths and timing information from the compiler, neither of which are guaranteed to exist on failures Test Plan: - Added a syntax error to a module and built with `NEXT_TELEMETRY_DEBUG=1`. Verified the failure event is sent along with the bundler value - Verified bundler values are now sent for webpack, rspack, and Turbopack on build successes
Author
Parents
Loading