MongoDB is now Supported by Queries

MongoDB is now Supported by Queries

Sentry's Queries view helps you investigate your database performance, in terms of throughput and duration, so that you can prioritize fixing the parts of your application where it spends the most time talking to the database.

Up until recently, Queries only supported SQL databases, such as Postgres and MySQL.

Support has now been added for MongoDB. In the Query view, you can select MongoDB as the system, as well as selecting specific commands and collections you wish to filter by:

example-of-find.png

As with SQL, we group together similar MongoDB queries, which you can use to drill down, find exemplar spans see where queries are used in your application, and make decisions about how to optimize performance:

grouped-queries.png

MongoDB spans are instrumented in sentry-python from v2.11.0 onwards and in sentry-javascript since v5.29.0.

If we're missing instrumentation for an SDK you would like to see, or if you have any other questions, please reach out on Discord or Twitter.

Your code is broken. Let's Fix it.
Get Started