Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB Support #956

Open
Tracked by #113
smeubank opened this issue Nov 28, 2024 · 1 comment
Open
Tracked by #113

MongoDB Support #956

smeubank opened this issue Nov 28, 2024 · 1 comment

Comments

@smeubank
Copy link
Member

smeubank commented Nov 28, 2024

Problem Statement

Provide an integration for MongoDB

Developers working with MongoDB, should get more value out of Sentry performance insights: Cangelog: MongoDB is now Supported by Queries

Solution Brainstorm

Dependent on: mongodb/laravel-mongodb#3183

@stayallive
Copy link
Collaborator

stayallive commented Feb 5, 2025

You can right now enable the required event by doing DB::connection('mongodb')->enableQueryLog(); in the application.

We are however missing the required db.operation and db.collection.name which are not part of the event data:

Image

I believe these are part of the "query" JSON but I'm not sure we want to try and parse that or if we want to try and improve the event data from the MongoDB driver side to obtain this information because currently the query is not recognized as a database query because of the missing attributes.

Another route is that we add our own so called command subscriber and do the work ourselves to get the data instead of using the Laravel events which might be the best option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants