segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
354 stars 182 forks source link

Event is sometimes not showing in debugger #862

Closed marygarciapepperstone closed 10 months ago

marygarciapepperstone commented 11 months ago

An event is sometimes not displayed in the Debugger even though it appears to be executed (confirmed with a Logger plugin).

In this screenshot, there are 3 events that were triggered in our app, the first two (highlighted with pink and green) are sent and showing but the latest (highlighted in red) isn't. Tried waiting for a couple of minutes and then opening and closing the app but the latest event were still missing from the debugger.

Screenshot 2023-07-27 at 8 57 27 PM

Steps to reproduce

Segment client settings:

export const segmentClient = createClient({
  writeKey: SEGMENT_WRITE_KEY,
  trackAppLifecycleEvents: true,
  debug: DEV_DEBUG.CONSOLE_LOG_SEGMENT,
  flushInterval: 1,
});

segmentClient.add({ plugin: new Logger() });

Expected behavior The event is shown in the debugger Actual behavior The event is not showing in the debugger

sushilr commented 11 months ago

I'm experiencing these problems as well. I see them tracked in the logs and it also says "Sent 5 events" etc but i see only 1 in the debugger (sometime none). I'm on the latest 2.15.0 and RN 0.71.11.

oscb commented 10 months ago

@marygarciapepperstone sadly Segment's online debugger does not always show all the events that get to Segment. This is a limitation on the server side. The logs in this case are more reliable.

Please contact friends@segment.com, they can help you out with the Segment Cloud side!