Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

User actions are being dropped for Android devices with "no side effect was registered during its scope" notice #53

Closed
xacaciax opened this issue Sep 18, 2021 · 5 comments

Comments

@xacaciax
Copy link

xacaciax commented Sep 18, 2021

We recently added this package to our mobile applications to track page views and user actions. The same user actions that are registering and being reported to datadog for an iOS mobile device are getting dropped on Android devices.

This same action that is coming through and viewable in datadog for an iOS device (iPhone 12 in the XCode simulator)

image

is getting dropped on an Android device (Pixel 5 API 31 in Andoid Studio emulator) with the error:

I/Datadog (26349): RUM Action fe7e6881-dfc3-46a6-a170-fa44f6f0b06a (TAP on housingServiceFavorited) was dropped (no side effect was registered during its scope)

Screen Shot 2021-09-17 at 5 30 41 PM

I double checked my configuration and my androidRumApplicationId is correct. Views and other data is reporting as expected.

This log message no side effect was registered during its scope can be found in the dd-sdk-android.

We are glad to be using this package and looking forward to a resolution here 🙏🏼

@tshedor
Copy link
Contributor

tshedor commented Sep 18, 2021

Hey @xacaciax thanks for using datadog_flutter. To be honest, I'm out of my depth on this one because I primarily work in iOS.

Doing a bit of searching, I found a thread that suggests dropping tap events is a...feature not a bug? This, however, doesn't make sense, because there wouldn't be a Tap API if the SDK developers didn't intend the end implementation to use it.

There was one other caveat in the same thread that I'd like you to check on your emulator for me.

Otherwise, it appears the SDK purposefully ignores events that are not custom. So could you also please try changing this event type to custom and seeing if it reports the same for iOS and Android?

@xacaciax
Copy link
Author

@tshedor thanks so much for responding here. I checked the battery level on my emulator and set it to 100% and that didn't seem to be the cause. Then, I changed the event type to RUMAction.custom and the SDK stopped dropping the action.
image
Strange that the Android SDK is only registering custom events 🤔 But nonetheless, this will work for us. Here's the event coming through from the Android emulator 🥳 Thanks!!

@tshedor
Copy link
Contributor

tshedor commented Sep 20, 2021

@xacaciax super strange. I've reached out directly to the RUM team about this and will hopefully report back with a better work around than having all your events be custom.

@xgouchet
Copy link
Contributor

Hi @xacaciax, actually the SDK does register TAP events but for now we only keep them if they have a noticeable side effect. This was originally done to avoid adding too much noise registering events that didn't lead to errors or network resources.

@tshedor
Copy link
Contributor

tshedor commented Sep 26, 2021

Thanks for responding @xgouchet . @xacaciax I'm going to open a PR to include this in the README

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants