open-telemetry / opentelemetry-swift

OpenTelemetry API for Swift
https://opentelemetry.io/docs/instrumentation/swift/
Apache License 2.0
207 stars 124 forks source link

Fix thread race condition in SynchronousMetricStorage #540

Closed nachoBonafonte closed 2 months ago

nachoBonafonte commented 3 months ago

Protect the aggregatorHandles with a concurrent queue allowing concurrent access to recorders and exclusive access on collection.

Fixes #532