My company runs a Flask API connected to MongoDB on atlas. Currently, we have minimal logging and metrics and rely solely on Altas to monitor DB usage. This month we realized the DB is being queried excessively but we don't know which API endpoints are to blame.
Hence, I want to implement a system using OTEL to monitor the MongoDB usage of my API and then analyze which endpints are querying too much data. I began looking into auto instrumentation. Is it possible to implement this with minimal overhead and changes to the API source code? Code examples would be very appreciated!