Hi.
Doing a implementation of RN in a client we are facing 2 problems.
1- actions were not being capture we check the opt in its disabled but even so, it is necessary to set this as part of the main app.
opt in disabled
yet this its necessary. to capture the actions add this code to the app.
let privacyConfig = new UserPrivacyOptions(DataCollectionLevel.UserBehavior , true);Dynatrace.applyUserPrivacyOptions(privacyConfig);
this as part for my understanding its not working properly, because if the opt-in its disabled its not necesary to implement the privacy config.
now we are getting the actions as names ( icon names) but its something that we can handle. with dtActionName
- dtActionName: Use a custom property called dtActionName
well this its the 2 problem.
the client ask to to use dtActionName inside a button. in a test before implement it on their app. its required to see it working before.
in this journey (in theory easy one), i am using the default app that its created with npx command
npx react-native init dynajs --template react-native-template-typescript@latest
this create a app with RN 0.70.6 and i am adding some navigation tabs.
its a simple one app for testing purposes. and i am facing the same problem. no regular actions are being capture,
i just create 3 tabs, 2 buttons and 2 touchable events.
the tab buttons arent being capture, the bizevent button neither, the “PRESIONAME” button its a Dynatrace.enterAction so its being captured. and a touchable event its no being capture.
last time this happen to me i just add the privacy config (even when its not necesary) and this work and started to capture actions on 0.67 version. now in RN 0.70.6 its not working the same recipe.
i just doing the normal thing
react-native start --reset-cache
npx instrumentDynatrace
npx react-native run-android
i am using even the default config that its made with npx dyntraceconfig command because the one that we can download its not working neither.
the logs just look fine.
#INFO [2022-11-29 02:30:26]: Starting instrumentation of React Native application ..
#INFO [2022-11-29 02:30:26]: Dynatrace React Native Plugin - Version 2.253.2
#INFO [2022-11-29 02:30:27]: Trying to read configuration file: D:\66-Programas\android\reactnativeapp\reactdyna\dynajs\dynajs\dynatrace.config.js
#INFO [2022-11-29 02:30:27]: Starting Android Instrumentation with Dynatrace!
#INFO [2022-11-29 02:30:27]: Dynatrace plugin & agent already added to build.gradle
#INFO [2022-11-29 02:30:27]: Replaced old configuration with current configuration in dynatrace.gradle
#INFO [2022-11-29 02:30:27]: Finished Android Instrumentation with Dynatrace!
#INFO [2022-11-29 02:30:27]: Starting iOS Instrumentation with Dynatrace!
#INFO [2022-11-29 02:30:27]: Not generating a new plist as the current plist and dynatrace.config.js iOS properties are identical!
#INFO [2022-11-29 02:30:27]: Finished iOS Instrumentation with Dynatrace!
#INFO [2022-11-29 02:30:27]: Patching SourceMap generation of Metro ..
#INFO [2022-11-29 02:30:27]: Patching of SourceMap already happened!
#INFO [2022-11-29 02:30:27]: Finished instrumentation of React Native application ..
if anyone have a idea. please i am open to try it. i really dont know what i am missing here.







