Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLaunchedByDebugger ¶
func IsLaunchedByDebugger() bool
IsLaunchedByDebugger returns true in cases where the delve debugger was used to launch the cockroach process.
Types ¶
type SafeStack ¶
type SafeStack []byte
SafeStack is an alias for []byte that handles redaction. Use this type instead of []byte when you are sure that the stack trace does not contain sensitive information.
func Stack ¶
func Stack() SafeStack
Stack wraps the output of debug.Stack() with redact.Safe() to avoid unnecessary redaction.
WARNING: Calling this function grabs system-level locks and could cause high system CPU usage resulting in the Go runtime to lock up if called too frequently, even if called only in error-handling pathways. Use sporadically and only when necessary.
Click to show internal directories.
Click to hide internal directories.