Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-256

laravel-mongodb - Issue #3183: QueryExecuted event not dispatched

    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      kbiits has created Issue #3183: QueryExecuted event not dispatched in laravel-mongodb. This Jira ticket was filed by GromNaN

      Issue Text:

      • 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
      <img width="877" alt="image" src="https://github.com/user-attachments/assets/310c13af-b854-41d7-a8b4-9e1563ea2e6c">

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: