Skip to main content

One doc tagged with "Tracing"

View all tags

Tracing Channels

mysql2 provides built-in instrumentation via Node.js TracingChannel from the node:diagnosticschannel module. This allows APM tools (OpenTelemetry, Datadog, Sentry, etc.) and custom instrumentation to subscribe to query, execute, connect, and pool lifecycle events without monkey-patching.