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: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics
    • None
    • 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?

      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:
              Resolved: