GODRIVER-3144Backlog

Use error “Cause” to deliver better error messaging when supported.

Per a [Slack thread|https://mongodb.slack.com/archives/C7WJZNUTA/p1709133917284529]: This ticket proposes using Go’s new “Cause” APIs to augment “context canceled” and “context deadline exceeded” messages with more detail. For example, what canceled the context? Or, what was supposed to happen before the deadline passed? (For reference, Mongosync plans to implement something similar in REP-3632.) NB: While the Cause APIs are new in Go 1.20, build tags would allow their use without break

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Error Handling
Labels
Tags and classification

No labels assigned.