designcourse
designcourse copied to clipboard
💡 Discard identical logs
Is your feature request related to a problem? Please describe. Currently, the eventRateLimiterThreshold is hardcoded to 3000 in https://github.com/DataDog/browser-sdk/blob/b43623f43019f3e93e491630f6e62ccf93cb4da8/packages/core/src/domain/configuration/configuration.ts#L162 We would like to lower this value to avoid logging too many identical errors (e.g. extensions adding icons into input fields which can cause many ResizeObserver loop errors).
Describe the solution you'd like
Add eventRateLimiterThreshold
to InitConfiguration
Describe alternatives you've considered
Adding a wrapper around logging functions and our own forwardErrorsToLogs
eventHandlers to add similar behavior would work I think, but that would require a bunch of code that isn't really needed. The functionality is already there.