// 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:] }
func currentStackAt(index int) stackTrace { s := make(stackTrace, 0, 0) stack2struct.Current(&s) return s[index:] }