LabscoMCP early access ↗

At three in the morning, “connection failed” is not enough. samber/oops attaches who, what and where to the error itself, along with a stack trace and a separate message that is safe to show a user.

WHEN TO USE

SCOPE

USE FOR

  • Attach structured, low-cardinality attributes to a Go error so APM tools group it.
  • Separate a user-facing error message from the technical details behind it.
  • Convert a panic from a goroutine into a structured error with oops.Recover.
  • Add a domain, tags, and a machine-readable code to an error for on-call triage.
  • Carry an error builder through a Go context across middleware and handlers.