Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-2176

Some commands are not logged/emitted for command monitoring

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Rust Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The logic for emitting/logging command events lives in execute_operation_on_connection, which gets called in the operation execution path in executor.rs. However, some commands sent by the driver call connection.send_message directly, meaning no events/logs are emitted. For example, the OIDC code sends saslStart using connection.send_message (https://github.com/mongodb/mongo-rust-driver/blob/799f32333b46c3a39d0af14376370df4173d41d7/src/client/auth/oidc.rs#L913). This means we cannot monitor these events for tests. We should either a) route all messages through the executor or b) move command event logging/emitting to send_message.

            Assignee:
            Unassigned Unassigned
            Reporter:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: