Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3144

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

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers

      Per a Slack thread:

      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 breaking compatibility with earlier Go releases.

            Assignee:
            Unassigned Unassigned
            Reporter:
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: