You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wasn't a fan of locking the diagnostics listeners (it may constitute a race condition, but I don't think errors could be induced from this) when I implemented it, but I think a reader-writer lock would be acceptable.
Hi,
Seems there's a data race. Running
go test --race ./appinsights/...
produces the following:Introducing a
writer.lock.Lock()
(and a defer unlock of course) to diagnostics.go:87 in thehasListeners()
function seems to resolve itThe text was updated successfully, but these errors were encountered: