Documentation ¶
Overview ¶
Package stacktrace Port of the stack trace logic from zap logger so that we can add stacktraces and origins to API Errors
Index ¶
Constants ¶
View Source
const ( // First captures only the first frame. First stacktraceDepth = iota // Full captures the entire call stack, allocating more // storage for it if needed. Full )
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
func Capture(skip int, depth stacktraceDepth) *stacktrace
Capture captures a stack trace of the specified depth, skipping the provided number of frames. skip=0 identifies the origin of captureStacktrace.
The origin must call Free on the returned stacktrace after using it.
func CaptureAsString ¶
func NewStackFormatter ¶
NewStackFormatter builds a new stackFormatter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.