Latest / Developer tools

errtrace

github.com · Open source · Maintained

Error return traces for Go, inspired by Zig

Visit github.com ↗Share

  • error
  • go error tracing
  • golang error trace
  • return trace go
  • error stack alternative
  • go errors debugging
Stars
821
Forks
14
Open issues
12
Last commit
Releases
5
Found
3 years ago

GitHub figures as of . They are context, not a ranking.

errtrace is an open-source Go library that gives errors a trace of their return path, offering an alternative to traditional stack traces. It suits Go developers who want to see where an error passed through their code.

Repository description on GitHub: “An alternative to stack traces for your Go errors”

What it does

  • Adds each function's location to a returned error's return trace
  • Manual and automatic instrumentation options
  • Return traces as an alternative to stack traces

Good for

  • Find the path an error took through your Go functions
  • Compare return traces with stack traces when debugging Go errors

Suits: Go developers who want to see how errors travel through code.

Worth knowing: The package is experimental.

What you can try

Read the README on GitHub and install from source.

Install

go install braces.dev/errtrace/cmd/errtrace@latest

Taken from the project’s README. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw errtrace on , when abhinavg posted it to Show HN. The oldest published release on GitHub is v0.1.0, dated . Its first tagged release landed the same day it was found. 5 releases have been published in total; the latest is v0.4.0 ().

Day-7 and day-30 updates

Day 7 1 release shipped

  • 1 release in the first 7 days: v0.2.0 (30 Nov 2023)
  • Show HN discussion at check time: 133 points, 84 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 2 releases shipped

  • 2 releases in the first 30 days: v0.2.0 (30 Nov 2023), v0.3.0 (22 Dec 2023)
  • Show HN discussion at check time: 133 points, 84 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (1 in total, busiest month 1).
  1. Repository created on GitHub: bracesdev/errtrace
  2. Release v0.1.0
  3. Release v0.1.1
  4. Found: abhinavg posted it to Show HN. Show HN
  5. Release v0.2.0
  6. Release v0.3.0
  7. Release v0.4.0
  8. Day-7 check recorded by Kip (details)
  9. Day-30 check recorded by Kip (details)

Quick answers

When was errtrace released?
Its first tagged release on GitHub is dated 29 Nov 2023. Kip found it on Show HN on 29 Nov 2023.
Is errtrace open source?
Its source is public on GitHub at bracesdev/errtrace under the BSD-3-Clause licence.
What does errtrace run on?
Library.
Is errtrace free?
It is open source, so the code is free to read and run; check the licence for terms.
Is errtrace still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorybracesdev/errtrace
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-38458802. Summary written by KipFound’s editor.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.