Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SDK makes our app very slow over time on devices that block Segment #1021

Open
simontreny opened this issue Oct 30, 2024 · 1 comment
Open
Labels
bug Something isn't working enhancement New feature or request

Comments

@simontreny
Copy link

Some of our users (especially on Android) have reported that their app becomes very slow the more they use it.

After investigation, we realized that these members blocked tracking on their device (for example with pihole), leading to Segment being blocked. In this case, Segment SDK would keep persisting more and more events over time, leading to a situation where every tracked events caused the app to try to store thousands of events, making the app super slow.

We've addressed it by providing our own custom persistor that drops excessive number of events, but we should not have had to do that.

  • analytics-react-native version: 2.20.2
  • Integrations versions (if used): analytics-react-native-plugin-amplitude-session
  • React Native version: 0.74.5
  • iOS or Android or both? Android mostly, but it probably could happen to iOS too

Steps to reproduce

  • Make sure events cannot be uploaded to Segment
  • Track a lot of events
  • Notice that the SDK will accumulate a lot of events and will try to persist them all every time a new event is tracked

Expected behavior

Some kind of sane defaults, where excessive events are dropped if they cannot be uploaded

@simontreny simontreny added the bug Something isn't working label Oct 30, 2024
@alanjcharles
Copy link
Contributor

Hi @simontreny thanks for reaching out- we'll prioritize this over the coming sprints

@alanjcharles alanjcharles added the enhancement New feature or request label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants