Skip to content
E

Errtrace

An alternative to stack traces for your Go errors

by bracesdevFree

#2080in Utilities
0In stores

Description

errtrace is an experimental Go package that records a return trace for errors, the path an error takes through the functions it returns thro…

Highlights

  • Return traces for Go errors
  • Works across goroutines and channels
  • No other runtime dependencies
  • CLI that instruments code automatically
  • Faster than capturing a stack trace

Ratings & Reviews

No ratings yet

Be the first to rate Errtrace.

People also visit

G

golang-samber-oops

Structured error handling in Golang with samber/oops

AI Skills
Get
G

golang-error-handling

Idiomatic Golang error handling

AI Skills
Get
G

golang-troubleshooting

Troubleshoot Golang programs systematically - find and fix the root cause

AI Skills
Get
G

go-error-handling

Writing Go code that returns, wraps, or handles errors

AI Skills
Get
F

fix-errors

Guidelines for fixing unhandled errors

AI Skills
Get
O

Outrig

Dev-time observability tool for Go programs

Developer Tools
Launch

Errtrace FAQ

What is errtrace?

An experimental Go package that records the path an error takes back through the code, as an alternative to a stack trace.

How is it different from a stack trace?

A stack trace records where an error was created. A return trace records each function the error returns through, which helps when errors pass through channels or goroutines.

Does it add dependencies?

No. The README says it brings no other runtime dependencies.

How do I add it to my code?

The README covers manual instrumentation, and automatic instrumentation with the errtrace CLI.

Is it ready for production?

It is described as experimental, so read the README's caveats and safety notes before you rely on it.

What are the best Errtrace alternatives?

Popular alternatives to Errtrace include TrackJS and Btrace. See all Errtrace alternatives

Developer Stuff

Badges