sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Calling sendAction with nil in a tight loop causes performance issue

Open philipphofmann opened this issue 1 year ago • 0 comments

Description

A customer reported an issue in which a third-party library calls sendAction with nil target in a tight loop, for which the Cocoa SDK creates multiple breadcrumbs. As the SDK serializes breadcrumbs to SentryCrash, this adds a significant performance overhead.

An idea brought up by the customer is that the Cocoa SDK could ignore sendAction with nil target. Ideally, the SDK adds a backpressure mechanism for addBreadcrumb.

philipphofmann avatar May 28 '24 15:05 philipphofmann