NewWeekly newsletter with catalog picks and agent news · Read
ToolsMCPBlogResearchCommunityStar on GitHub
All Tools
P
Dev ToolsFreeOpen Source

PKG ERRORS

Wrap Go errors with stack traces

BSD-2-Clause

ABOUT

Go agent pipelines lose the call site when they return bare errors from tool and model clients. pkg/errors wraps and annotates errors with stacks so operators see which hop failed without a custom error type.

INSTALL
go get github.com/pkg/errors

INTEGRATION GUIDE

1. Wrap model-client failures with stack traces in a Go worker 2. Annotate tool-call errors as they bubble through an agent loop 3. Log cause plus stack when an embedding request fails 4. Preserve error context across queue consumers and HTTP handlers

TAGS

goerrorsstack-tracereliability