Monkey-patching has long been the standard approach for instrumenting Node.js libraries in APM tools like Sentry and OpenTelemetry, but it breaks down with ES Modules. Node.js's built-in Diagnostics Channels and Tracing Channels offer a better alternative: libraries can proactively emit structured telemetry data themselves,

7m read timeFrom sentry.engineering
Post cover image
Table of contents
What Is Instrumentation?How server-side JavaScript is instrumentedLibraries Should Emit Their Own TelemetryHow Libraries Can Implement Tracing ChannelsThe Ecosystem Is Already MovingThe Vision Ahead

Sort: