Skip to content

Commit 0304b8b

Browse files
committed
add comments
1 parent 5213366 commit 0304b8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

flowtracker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func NewMiddleware(opts ...Option) func(http.Handler) http.Handler {
127127
// Wrap in anonymous func to handle panics individually
128128
func(e Exporter) {
129129
defer func() {
130+
// With this recover() logic inside the loop: If one of the multiple exporters are down, then this won't stop the other exporters from working
130131
if r := recover(); r != nil {
131132
fmt.Printf("FlowTracker Exporter Panic: %v\n", r)
132133
}

0 commit comments

Comments
 (0)