[GODRIVER-1371] improve usability of the APM interface Created: 23/Oct/19  Updated: 27/Oct/23  Resolved: 04/Nov/19

Status: Closed
Project: Go Driver
Component/s: Monitoring
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Sam Kleinman (Inactive) Assignee: Jeffrey Yemin
Resolution: Works as Designed Votes: 0
Labels: evg
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DRIVERS-2575 Add collection name to all command lo... Backlog

 Description   

I've been working on an APM integration for Evergreen, and run into a few problems with the API:

  • it's difficult to get the collection name (you have to parse a BSON document when the operation starts) that an operation is on, and while some operations don't have collections, most do.
  • you have to keep track of operation starts and ends to get some data, and it would be much more ergonomic if you could get a single event when an event completes with all the data, it'd avoid needing to track the event starts (which we don't care about until an event ends.)
  • the fact that you have to handle succeeded and failed operations seperatly, introduces a bunch of complexity.
  • the thread safety of writing the code to handle these events is pretty complicated, given that many threads are doing operations, the chance of us impacting performance (or deadlocking the driver,) seems high.

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