[JAVA-4907] Add operationId to events and log messages Created: 12/Mar/23  Updated: 28/Oct/23  Resolved: 25/Apr/23

Status: Closed
Project: Java Driver
Component/s: Logging, Monitoring
Affects Version/s: None
Fix Version/s: 4.10.0

Type: New Feature Priority: Unknown
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to JAVA-4939 Log operation ID when retrying Closed
Documentation Changes: Not Needed
Documentation Changes Summary:

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?


 Description   

See https://github.com/mongodb/specifications/blob/e9b4c96f3ff9b639c61feb7ed149ed14b59aabb6/source/command-logging-and-monitoring/command-logging-and-monitoring.rst#common-fields

The lack of support for operationId makes it difficult to correlate events and log messages forĀ 

  • connection check out started and connection check out completed/failed
  • bulk writes
  • cursor iterationĀ 

So there is no way to reliably determine, for example, how long an operation spent in a connection pool's wait queue.



 Comments   
Comment by Githook User [ 25/Apr/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Add operation identifier to connection check out/in events (#1105)

JAVA-4907
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b45d57d6fe45b43b4d3edbb9b351bfc046d83291

Comment by Githook User [ 30/Mar/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Add operationId to command events (#1101)

JAVA-4907
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/7bdd1d7ab0665b20e680b68a6485a0ce2584d8f5

Comment by Githook User [ 28/Mar/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Add OperationContext to Binding (#1097)

JAVA-4907
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/647e3b227ed19f102d14c1f80f947ada910e15b9

Comment by Jeffrey Yemin [ 22/Mar/23 ]

Phase one in review

Generated at Thu Feb 08 09:03:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.