Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracing across go routines #54

Open
gregwebs opened this issue Jan 26, 2025 · 1 comment
Open

tracing across go routines #54

gregwebs opened this issue Jan 26, 2025 · 1 comment

Comments

@gregwebs
Copy link
Owner

gregwebs commented Jan 26, 2025

When errors are handled across go routines, can we ensure that gets traced?

In this case there should be multiple stack traces generated. Currently the code has some optimization to avoid generating multiple traces.

Generally code using errors is going to look for just the first stack trace it can find and then use just that- in addition to generating a trace per go routine we need at least an official way to coalesce the stack traces together.

@gregwebs
Copy link
Owner Author

gregwebs commented Feb 5, 2025

Perhaps it is possible to leverage errtrace? https://github.com/bracesdev/errtrace
The problem with exclusively using errtrace is that you have to wrap errors everywhere to build your stack up.
With the existing approach of gathering the call stack, if that is done just once you get most of the information that you need even if there is no wrapping anywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant