Commit Graph

9 Commits

Author SHA1 Message Date
Tonis Tiigi
d6b158d529 stack: compress shared stacks for clearer output
Combines the shared parts of stacktraces so they
take up less space. For example if error is wrapped
from similar codepath to the main error, the main error
gets the stacktrace and wrapping gets only to stacktrace
up to the point where same frame exists in main error as well.

This also means we need to be less careful about WithStack as
if error already has a longer stack from current position, it
would be ignored.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-07-22 17:20:21 -07:00
Derek McGowan
89c8784cd9 Update tracing check for whether error has stack
Use the pkg/errors and stack package interface to check for a stack. Use
the standard library methods to unwrap errors.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2024-05-31 17:03:55 -07:00
Akihiro Suda
eb05c5908c go.mod: github.com/containerd/containerd v1.7.0-beta.4
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-02-17 11:06:56 +09:00
CrazyMax
e1b3b6c4ab hack: infer protoc-gen-go version from go.mod
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-11-17 13:50:49 +01:00
Sascha Schwarze
8e6a2c0dd6 lint: fix various gosec findings
Signed-off-by: Sascha Schwarze <schwarzs@de.ibm.com>
2022-10-26 10:16:04 +01:00
Tonis Tiigi
ca46949277 stack: remove helper functions from error stack traces
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-18 23:36:38 -07:00
Tonis Tiigi
862387445e grpcerrors: use full typeurl registration
Also switches current types to json.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-08-06 12:28:48 -07:00
Tonis Tiigi
90288ab716 errdefs: update to new packages
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-24 11:25:44 -07:00
Tonis Tiigi
c511cdb35a util: add grpcerrors and stack package
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-22 15:58:20 -07:00