Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1799

Provide custom information in the executing commands

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics
    • Labels:
      None

      We receive far more information to log, starting with the 2.2 driver, with the help of event subscribers. However, in an async environment, it is hard to tell, if not impossible, which command that we issued matches a specific event (for example CommandSucceededEvent). Ideally, it would be very handy to provide in a BulkWriteAsync command, or FindAsync, some sort of information (string?) that we can get in the event information and then match with our custom code (for example in the Options parameter).

      Alternatively, the result objects could provide a list of issued command ids related to that operation (BulkWrite/Find) - however I favor the first approach.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ioan.crisan@soloplan.de Ioan Crisan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: