Exemplo n.º 1
0
// currentStac returns the current stack. However, it omits the first 3 entries
// to avoid cluttering the trace with raygun4go-specific calls.
func currentStack() stackTrace {
	s := make(stackTrace, 0, 0)
	stack2struct.Current(&s)
	return s[3:]
}
Exemplo n.º 2
0
func currentStackAt(index int) stackTrace {
	s := make(stackTrace, 0, 0)
	stack2struct.Current(&s)
	return s[index:]
}