[CSHARP-1699] CommandSucceededEvent - Possible to include 'Command' in the property list? Created: 05/Jul/16  Updated: 06/Apr/23  Resolved: 03/Dec/20

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: 2.2.4
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Craig Kennedy Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I am trying to connect mongo queries into my analytics suite. I want to log the command and duration. I only see the 'Command' property in the CommandStartedEvent. Is it possible to add it to the CommandCompletedEvent? The only other way to be able to track this would be to hold the state across the request, which seems to be more work than necessary.



 Comments   
Comment by Jeffrey Yemin [ 03/Dec/20 ]

Apologies for not answering on this ticket sooner.

We don't plan on fixing this. The reason is that we don't want every application that registers for this event to pay the price of keeping the entire command available in memory while waiting for it to succeed/fail. So we do require that applications that do need that command store it themselves.

Generated at Wed Feb 07 21:40:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.