DataDog / dd-sdk-ios

Datadog SDK for iOS - Swift and Objective-C.
Apache License 2.0
219 stars 127 forks source link

fix: do not send context updates on context read #1968

Closed ganeshnj closed 3 months ago

ganeshnj commented 3 months ago

What and why?

TLDR: when reading context from FeatureScope triggers a context update which again publishes context updates again to all the subscribes and we end up in a loop.

This shoots up CPU usage and an app termination likely.

How?

There a few learnings from this bug

Review checklist