QueryExecuted event not dispatched

Author: kbiitsCreated Oct 22, 2024Updated Nov 7, 2024
Labelstracked-in-jira
  • Laravel-mongodb Version: 5.1.0
  • PHP Version: 8.2.x
  • Database Driver & Version:

Description:

Steps to reproduce

  1. Listen to QueryExecuted
  2. Log the executed query

Expected behaviour

MongoDB driver should dispatch the QueryExecuted event when there's query executions

Actual behaviour

No query executed event dispatched

I'm using open-telemetry laravel auto instrumentation, and I noticed that the mongodb query not logged after I upgrade the driver version from 4.x to 5.1 image