Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncName ¶
FuncName given a runtime function spec returns a short function name in format `<package name>.<function name>` or if the function has a receiver in format `<package name>.(<receiver>).<function name>`.
func GetCallStack ¶
func GetCallStack(frames errors.StackTrace) string
func GoRoutineID ¶
func GoRoutineID() uint64
Returns the current goroutine id
logrus.Infof("[%d] Info about this go routine", stack.GoRoutineID())
Types ¶
type FrameInfo ¶
func GetLastFrame ¶
func GetLastFrame(frames errors.StackTrace) FrameInfo
Returns Caller information on the first frame in the stack trace
type HasStackTrace ¶
type HasStackTrace interface {
StackTrace() errors.StackTrace
}
type Stack ¶
type Stack []uintptr
stack represents a stack of program counters.
func (*Stack) StackTrace ¶
func (s *Stack) StackTrace() errors.StackTrace
Click to show internal directories.
Click to hide internal directories.