google / google/gops

Stacktrace in 'debug=1' format

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
7k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

Hi!

I'd like to propose a feature that allows to (optionally) dump a stack track in `debug=1` format. Currently agent hardcodes it to `debug=2`.

While `debug=2` format is probably more readable, `debug=1` has a rather large advantage - it includes `pprof` labels. This is especially handy when there are many goroutines doing similar work but handling different tasks/assignments/etc.

If there are no objections, I can probably prepare a PR. I think introducing a new command to preserve backward compatibility is the way to go here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.