26 Sep 2024 12:38 PM - last edited on 27 Sep 2024 07:39 AM by MaciejNeumann
Hi there,
I'm experiencing an issue with Dynatrace auto-instrumentation in React Native with https://www.npmjs.com/package/@dynatrace/react-native-plugin.
Everything works as expected on Android and iOS in debug mode, but in the release build, specifically in iOS, API calls to get some configurations when the application launches are not resolved.
If I turn off auto-start by setting DTXAutoStart as false in the info.plist, then it works as expected.
I also tried replacing axios calls with fetch and noticed that fetch resolves the calls, but axios API calls don't return either an error or a response.
I suspect there may be some internal conflicts between Axios and Dynatrace's network tagging. I want to use Axios exclusively and auto-instrumentation.
I would greatly appreciate any help with this issue.
Solved! Go to Solution.
27 Sep 2024 07:49 AM
Issues like this are better suited for opening a support case. We need to know the versions of react-native, axios and our react-native plugin. Basically instrumentation happens on the native side, not on the JS side. So I would assume both Axios and fetch are going down to the same native request. But we would like to reproduce this.
27 Sep 2024 08:27 AM
We're using the following versions
"@dynatrace/react-native-plugin": "^2.297.2",
10 Oct 2024 01:36 PM - edited 10 Oct 2024 01:37 PM
Hi, Is there any update on this? @matthias_hochri