Automatic Instrumentation

Learn what transactions are captured after tracing is enabled.

When performance is enabled through tracesSampleRate, enableTracing or a tracesSampler function, the Sentry SDK will automatically capture spans for the following:

  • Incoming requests
  • Outgoing HTTP requests
  • Database queries made with the following packages:
    • mysql
    • mysql2
    • pg
    • graphql (including Apollo Server)
    • mongo
    • mongoose
    • ioredis

The following packages are not automatically instrumented and need to be set up manually:

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").