tracex

package
v0.0.100 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStackTrace

func GetStackTrace() string

GetStackTrace returns the stack trace of the caller.

func RecoverWithStackTracef added in v0.0.75

func RecoverWithStackTracef(l *logrusx.Logger, msg string, args ...interface{})

RecoverWithStackTracef recovers from a panic and logs the message with a stack trace. It should only be used as a defer statement at the beginning of a function. i.e. defer tracex.RecoverWithStackTracef(l, "panic while handling messages")

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL