open-telemetry / opentelemetry-swift

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

Updates URLSessionInstrumentation to check task.state before setting FakeDelegate #539

Closed atreat closed 3 months ago

atreat commented 3 months ago

The task.delegate cannot be set if task has already been resumed (state == .running)

Fixes #530

linux-foundation-easycla[bot] commented 3 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

nachoBonafonte commented 3 months ago

Thanks a lot for the investigation and fix.