# npx instrumentDynatrace

**URL:** <https://community.dynatrace.com/t/npx-instrumentdynatrace/54940>\
**Category:** Real User Monitoring\
**Tags:** android, mobile-monitoring, ios\
**Created:** [February 10, 2026, 7:04am UTC](https://community.dynatrace.com/t/npx-instrumentdynatrace/54940 "2026-02-10T07:04:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrism-hbf](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chrism-hbf](https://community.dynatrace.com/u/chrism-hbf)\
**Post date:** [February 10, 2026, 7:04am UTC](https://community.dynatrace.com/t/npx-instrumentdynatrace/54940/1 "2026-02-10T07:04:25Z")

</div>

We have an app built with expo.  
Instead of the default app.json, we’re using app.config.ts.  
When running the instrumentDynatrace command, Android instrumentation succeeds, but iOS fails with the error below:  
#INFO [2026-02-10 13:31:34]: ⏳ Starting instrumentation of React Native application ..#INFO [2026-02-10 13:31:34]: ℹ Dynatrace React Native Plugin - Version 2.327.2#INFO [2026-02-10 13:31:34]: ⏳ Trying to read configuration file: expo-app/dynatrace.config.js#INFO [2026-02-10 13:31:34]: ⏳ Starting Android Instrumentation with Dynatrace!#INFO [2026-02-10 13:31:34]: ℹ Dynatrace plugin & agent already added to build.gradle#INFO [2026-02-10 13:31:34]: ℹ Replaced old configuration with current configuration in dynatrace.gradle#INFO [2026-02-10 13:31:34]: ℹ Runtime script already present in expo-app/android/app/build.gradle#INFO [2026-02-10 13:31:34]: ✅ Finished Android Instrumentation with Dynatrace!#INFO [2026-02-10 13:31:34]: ⏳ Starting iOS Instrumentation with Dynatrace!#ERROR [2026-02-10 13:31:34]: ❌ iOS Instrumentation failed: ENOENT: no such file or directory, open ‘expo-app/app.json’#INFO [2026-02-10 13:31:34]: ⏳ Patching SourceMap generation of Metro ..#INFO [2026-02-10 13:31:34]: ℹ Patching of SourceMap already happened!#INFO [2026-02-10 13:31:34]: 🎉 Finished instrumentation of React Native application ..  
From what I can see, the script supports Gradle, plist, and Dynatrace config inputs, but there’s no option to specify a custom Expo app config path. It appears to assume app.json always exists.  
As a workaround, I’ve written a custom Expo plugin to manually instrument the iOS side.  
Is support for app.config.ts planned, or is there a supported way to point the instrumentation script at a non-default Expo config that I’ve missed?  
Any help would be appreciated.  
Thanks,Chris

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [February 10, 2026, 9:00am UTC](https://community.dynatrace.com/t/npx-instrumentdynatrace/54940/2 "2026-02-10T09:00:02Z")

</div>

Thanks for reporting this. I saw this already once in the past, which will increase prioritization for us. For now you can work around this by using custom arguments regarding plist file:&nbsp;[https://www.npmjs.com/package/@dynatrace/react-native-plugin#customizing-paths-for-configuration](https://www.npmjs.com/package/@dynatrace/react-native-plugin#customizing-paths-for-configuration)

---

<div class="post-metadata">

**Author:** ![chrism-hbf](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chrism-hbf](https://community.dynatrace.com/u/chrism-hbf)\
**Post date:** [February 11, 2026, 6:32am UTC](https://community.dynatrace.com/t/npx-instrumentdynatrace/54940/3 "2026-02-11T06:32:41Z")

</div>

Hi Matthias,

Thanks for coming back to me, but I am not sure how setting the plist would resolve this issue? The command doesn’t have a problem with that but the app.json, which I can see is a hardcoded value in the sourcecode, and cannot be overridden by args.

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [February 11, 2026, 7:41am UTC](https://community.dynatrace.com/t/npx-instrumentdynatrace/54940/4 "2026-02-11T07:41:16Z")

</div>

Please try and tell us if the error is gone. app.json file is used during plist finding. If you provide your own path we skip utilizing it. As said in the other response, we will try to find an alternative way to get rid in general of this issue for you.

---

<div class="post-metadata">

**Author:** ![chrism-hbf](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chrism-hbf](https://community.dynatrace.com/u/chrism-hbf)\
**Post date:** [February 13, 2026, 5:17am UTC](https://community.dynatrace.com/t/npx-instrumentdynatrace/54940/5 "2026-02-13T05:17:29Z")

</div>

Thanks&nbsp;[@matthias\_hochri](https://community.dynatrace.com/user/2925)&nbsp;, that was the fix. I should have tried that before coming back.

Appreciate your help on this.
