cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace auto instrumentation is not letting axios API calls get resolved - React Native | iOS

mukesh_jangid
Newcomer_

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.

3 REPLIES 3

matthias_hochri
Dynatrace Pro
Dynatrace Pro

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.

mukesh_jangid
Newcomer_

We're using the following versions

"react-native": "0.72.13"
"axios": "1.7.4"

"@dynatrace/react-native-plugin": "^2.297.2",


Note: As mentioned earlier we have that axios call to get some config from the server when an application launches right after the default splash screen.

I hope this information will help you to reproduce

mukesh_jangid
Newcomer_

Hi, Is there any update on this? @matthias_hochri 

Featured Posts