-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
Summary
Use time.Duration instead of DurationNanos integer for command monitoring events.
Proposed in PR: https://github.com/mongodb/mongo-go-driver/pull/1120
This can be done in a non-backward-breaking change by deprecating the current fields and adding new fields named Duration that are type time.Duration.
Definition of done:
- Deprecate event.CommandFinishedEvent.DurationNanos
- Add replacement field Duration time.Duration
- Deprecate event.ServerHeartbeatFailedEvent.DurationNanos
- Add replacement field Duration time.Duration
- Deprecate event.ServerHeartbeatSucceededEvent.DurationNanos
- Add replacement field Duration time.Duration
- is depended on by
-
GODRIVER-2617 Remove or un-export all currently deprecated code in Go Driver 2.0
- Closed
- related to
-
GODRIVER-2606 Deprecate unused functionality in preparation to remove it in Go Driver 2.0
- Closed