Skip to Content
GuidesDatabase Operations

Database Operations

Locate supported database and cache operations inside request traces.

MongoDB, pg, mysql2, and ioredis are enabled by the SDK’s OpenTelemetry instrumentations. A query or command is visible only when the driver was loaded after devtools.start() and the operation runs within an active request context.

Diagnose a slow query

  1. Open the HTTP request with the slow response.
  2. Expand child database spans.
  3. Compare each operation’s duration with the parent handler.
  4. Open an error span to see status and exception details.

Use the driver-specific integration guides for setup and preload checks.

Last updated on