Skip to content

Commit

Permalink
leaktest: ignore the opencensus worker
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Mar 30, 2023
1 parent 56ace76 commit b8b9f32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/util/leaktest/leaktest.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func interestingGoroutines() map[int64]string {
strings.Contains(stack, ").writeLoop(") ||
// Ignore the Sentry client, which is created lazily on first use.
strings.Contains(stack, "sentry-go.(*HTTPTransport).worker") ||
// Ignore the opensensus worker, which is created by the event exporter.
strings.Contains(stack, "go.opencensus.io/stats/view.(*worker).start") ||
// Seems to be gccgo specific.
(runtime.Compiler == "gccgo" && strings.Contains(stack, "testing.T.Parallel")) ||
// Ignore intentionally long-running logging goroutines that live for the
Expand Down

0 comments on commit b8b9f32

Please sign in to comment.