telemetry-ios
telemetry-ios copied to clipboard
Document current usage recommendations
- is not thread-safe, call only from main
- is only for CorePing and UI events which are inherently rate-limited by user interaction.
Per 1, can we also clarify that the call is non-blocking, so calling from main is relatively safe?
Will do, you are correct, all calls are main-thread async. They can result in main thread contention if called at excessive rate.
Yeah so we need to change that down the line. It's not good API behavior to expect clients to build their own rate limiting.
See also https://github.com/mozilla-mobile/telemetry-ios/issues/12