Open Q&A
If there's no good subforum for your question - ask it here!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace Race Native Plugin with Expo dynamic config

KevinGruber
Newcomer

Hi,

We are currently implementing the official Dynatrace react-native plugin into an EXPO for monitoring RN apps.

We ran into an issue during setup, the step where we need to call `npx instrumentDynatrace` expects a static app.json file and takes the name property verbatim from there to find the project folder in the iOS and android folder.

This has multiple problems:

  1. We don't have a static app.json -> we use app.config.ts as we use dynamic bundleIds etc based on build params
  2. The name is not 1:1 so expo does some transformations to create the folder name
  3. we use CNG -> which has the above mentioned problems

To work around that, we currently generate a app.json, transform the name in a similar way, call instrumentDynatrace and then delete the app.json again. While this works okish, I am of the opinion that the plugin should support static and dynamic configurations.

All the Best,
Kevin Gruber

Dynamic config Refercence: https://docs.expo.dev/workflow/configuration/

1 REPLY 1

matthias_hochri
Dynatrace Pro
Dynatrace Pro

Hi Kevin, 

Thanks for your request. I noted that down and we will take a look upon this feature request.

In general the app.json is used for us to get an indication for plist naming. If you are using npx instrumentDynatrace and append plist= with a customized path you can essentially skip the app.json reading as well.

https://www.npmjs.com/package/@dynatrace/react-native-plugin#npx-instrumentdynatrace

Featured Posts