Today, Amazon DocumentDB added support for logging slow queries via the query profiler. The profiler is useful for monitoring the slowest queries on your cluster to help you improve individual query and overall cluster performance. After enabling the profiler, operations that run longer than the customer-defined threshold (100ms by default) will log their execution time and query plan to Amazon CloudWatch Logs. You can use CloudWatch Logs Insights to analyze Amazon DocumentDB profiling data. For more information, please see profiling DocumentDB operations.