StackWithFilter returns a formatted stack trace of the goroutine that calls it. It calls runtime.Stack with a large enough buffer to capture the entire trace. The parameter `filter` is used to filter the path of the caller.
(filters []string, skip ...int)
| 28 | // |
| 29 | // The parameter `filter` is used to filter the path of the caller. |
| 30 | func StackWithFilter(filters []string, skip ...int) string { |
| 31 | return StackWithFilters(filters, skip...) |
| 32 | } |
| 33 | |
| 34 | // StackWithFilters returns a formatted stack trace of the goroutine that calls it. |
| 35 | // It calls runtime.Stack with a large enough buffer to capture the entire trace. |
searching dependent graphs…