<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding Dynatrace gradle plugin in android in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259657#M6358</link>
    <description>&lt;P&gt;It says by default it monitors all web request, and I have not disabled it, I am using oneAgent SDK, So do I need to perform something else to make web request monitoring&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 09:27:47 GMT</pubDate>
    <dc:creator>devggaurav</dc:creator>
    <dc:date>2024-10-18T09:27:47Z</dc:date>
    <item>
      <title>Add Dynatrace gradle plugin in Android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259563#M6349</link>
      <description>&lt;P&gt;I am trying to add dynatrace gradle plugin in my application, when I am adding plugin by following the documentation and adding it to top level gradle, getting this issue&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;it is too late to add actions as the callbacks already executed. did you try to call beforevariants or onvariants from the old variant api 'applicationvariants' for instance ? you should always call before variants or variants directly from the android components dsl block.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;and when using it in app level gradle its not working, also tried turning off dynatrace.ignoreBuildwarning&amp;nbsp;&lt;BR /&gt;I am using groovy gradle and its an old project. please suggest something if someone has tried this already&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 15:09:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259563#M6349</guid>
      <dc:creator>devggaurav</dc:creator>
      <dc:date>2025-12-10T15:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259570#M6350</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/82013"&gt;@devggaurav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It's better to remove the old instrumentation configurations from the mobile development part and from Dynatrace as well.&lt;/LI&gt;&lt;LI&gt;Remove the caches.&lt;/LI&gt;&lt;LI&gt;Ensure the Cluster AG is having publicly accessible IP address and the &lt;A href="https://docs.dynatrace.com/docs/shortlink/rum-firewall#mobile-rum" target="_self"&gt;RUM constraints&lt;/A&gt; are allowed.&lt;/LI&gt;&lt;LI&gt;Create a new mobile app in Dynatrace and use the cluster AG as beacon endpoint or if you're using a&lt;/LI&gt;&lt;LI&gt;Follow the Gradle instrumentation from scratch, hopefully you won't expose further issues.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;DT Resources:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/mobile-applications-landing#instrument-android-apps" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/mobile-applications-landing#instrument-android-apps&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/mobile-applications/additional-configuration/configure-rum-privacy-mobile" target="_blank"&gt;https://docs.dynatrace.com/docs/platform-modules/digital-experience/mobile-applications/additional-configuration/configure-rum-privacy-mobile&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/mobile-applications-landing#additional-configuration" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/mobile-applications-landing#additional-configuration&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-17_16h57_41.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23738iFFF14918E703DB5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-17_16h57_41.png" alt="2024-10-17_16h57_41.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If The mobile app servers are monitored by Oneagent use the third option&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-17_17h01_05.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23739i44795355FF9C6132/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-17_17h01_05.png" alt="2024-10-17_17h01_05.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the ENV AG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-17_17h02_14.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23740iC112E257C487010B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-17_17h02_14.png" alt="2024-10-17_17h02_14.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:03:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259570#M6350</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-10-17T13:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259575#M6351</link>
      <description>&lt;P&gt;I tried same applicationId and beaconUrl with a dummy app first, can it be a case that same applicationID and beaconUrl can not be used for two apps ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:15:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259575#M6351</guid>
      <dc:creator>devggaurav</dc:creator>
      <dc:date>2024-10-17T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259581#M6352</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/82013"&gt;@devggaurav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the RUM either mobile /&amp;nbsp; web&amp;nbsp; / custom to work perfectly:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Dedicated Application to each app so it's impossible to use the same app id for duplicated instrumentation.&lt;/LI&gt;&lt;LI&gt;The beacon should be unique as well.&lt;/LI&gt;&lt;LI&gt;So based on the instrumentation method your configuration parameters should be unique.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It's better to start a fresh instrumentation in collaborative manner including NW and FW team allowing the attached&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/web-applications/initial-setup/firewall-constraints-for-rum" target="_blank"&gt;https://docs.dynatrace.com/docs/platform-modules/digital-experience/web-applications/initial-setup/firewall-constraints-for-rum&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and DT admin creates deletes all this old mobile app related configurations and create a new app, ask for the new configurations from the instrumentation wizard it will contain the application ID and beacon endpoint definitely.&lt;/P&gt;&lt;P&gt;Start an new instrumentation journey and keep the good work up&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":man_technologist:"&gt;👨‍💻&lt;/span&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@6EDF483EF947B43E16DF999BED8ABCC0/images/emoticons/dynaspin.gif" alt=":dynaspin:" title=":dynaspin:" /&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:26:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259581#M6352</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-10-17T13:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259589#M6353</link>
      <description>&lt;P&gt;Can you suggest oneAgent SDK documentation for mobile application ? will that have some banefits ? which one is more convenient way to use ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 14:25:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259589#M6353</guid>
      <dc:creator>devggaurav</dc:creator>
      <dc:date>2024-10-17T14:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259595#M6354</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/82013"&gt;@devggaurav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It depends on the mobile development framework you will instrument Android &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;or iOS &lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;or what exactly to provide the proper resources.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As simple as that&lt;/STRONG&gt;:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/mobile-applications/instrument-android-app/instrumentation-via-oneagent-sdk/oneagent-sdk-for-android" target="_self"&gt;Instrumentation via OneAgent SDK for Android&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/mobile-applications" target="_self"&gt;Mobile Apps Instrumentations&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-17_19h11_51.png" style="width: 591px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23745i8AC857E91DD9CB9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-17_19h11_51.png" alt="2024-10-17_19h11_51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-17_19h13_47.png" style="width: 772px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23746i81C2FB7BAD3B42AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-17_19h13_47.png" alt="2024-10-17_19h13_47.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tip:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you're not the mobile app developer, engage the mobile app in call and share Dynatrace documentation as per the development framework, it will be easy to decide the most convenient method.&lt;/LI&gt;&lt;LI&gt;If the mobile app servers are monitored in Dynatrace, it will facilitate the instrumentation and detection of calling services, ....etc.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hoping this add value.&lt;/P&gt;&lt;P&gt;BR,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 15:21:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259595#M6354</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-10-17T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259643#M6355</link>
      <description>&lt;P&gt;Theoretically, the &lt;EM&gt;applicationId&lt;/EM&gt; and &lt;EM&gt;beaconUrl&lt;/EM&gt; can be used for multiple applications, because there is no limitation by Dynatrace. But this approach should be avoided.&lt;BR /&gt;Dynatrace recommends to use a different &lt;EM&gt;applicationId&lt;/EM&gt; for every mobile application, because the&amp;nbsp; dashboards will give you a proper overview of the application health state based on all reported data.&lt;BR /&gt;Some customers prefer to combine their iOS and Android apps into one mobile application and then use the OS filtering option to get the platform-specific metrics. This is the only scenario, where the usage of the same applicationId value is fine.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 08:48:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259643#M6355</guid>
      <dc:creator>Thomas_Wirth1</dc:creator>
      <dc:date>2024-10-18T08:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259646#M6356</link>
      <description>&lt;P&gt;I successfully added oneAgent SDK in my android application, with different applicationID and beacon URL, and enabled all, but I am not able to trace web requests from app automatically on dashboard, I want to track all of them , not using any third party web request, all are http, is there some config I am missing&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;.withUserOptIn&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;    .withCrashReporting&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;    .withActivityMonitoring&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;    .withDebugLogging&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;    .withStartupLoadBalancing&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;    .withHybridMonitoring&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Oct 2024 08:59:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259646#M6356</guid>
      <dc:creator>devggaurav</dc:creator>
      <dc:date>2024-10-18T08:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259654#M6357</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/82013"&gt;@devggaurav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good to hear that.&lt;/P&gt;&lt;P&gt;Kindly follow the attached procedure to configure the web request tracing :&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/oneagent-sdk-for-android#web-request-monitoring" target="_self"&gt;web-request-monitoring&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 09:24:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259654#M6357</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-10-18T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259657#M6358</link>
      <description>&lt;P&gt;It says by default it monitors all web request, and I have not disabled it, I am using oneAgent SDK, So do I need to perform something else to make web request monitoring&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 09:27:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259657#M6358</guid>
      <dc:creator>devggaurav</dc:creator>
      <dc:date>2024-10-18T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259660#M6359</link>
      <description>&lt;P&gt;The mentioned error message is generated by the Android Gradle plugin, when another plugin or the user tries to use its API after the step is executed. The Dynatrace Android Gradle plugin is using the API from the Android Gradle plugin to include the auto-instrumentation step into the Android app build process. It is using the &lt;A href="https://developer.android.com/reference/tools/gradle-api/8.3/com/android/build/api/variant/AndroidComponentsExtension" target="_self"&gt;android components feature&lt;/A&gt; to interact with the Android Gradle plugin and interacts with it before any action is executed.&lt;BR /&gt;&lt;BR /&gt;It seems there is an incompatibility with your build, because you or a plugin is changing the order in which the project setup is executed. Without any build files, we can't further troubleshoot your problem. You can create a support ticket and upload your build.gradle files. Then somebody from the support team will assist you in the troubleshooting effort.&lt;BR /&gt;For example, the usage of the Gradle API &lt;EM&gt;evaluationDependsOn&lt;/EM&gt; will change the execution order significantly and therefore the instruction in your Gradle files must be called in the correct order to have a successful build.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You wrote in another message that you tried it with a dummy project. The mentioned API is normally not used in dummy projects. Did you instrument a Flutter or ReactNative app? For these apps, Dynatrace provides the &lt;A href="https://pub.dev/packages/dynatrace_flutter_plugin" target="_self"&gt;Dynatrace Flutter plugin&lt;/A&gt; and the &lt;A href="https://www.npmjs.com/package/@dynatrace/react-native-plugin" target="_self"&gt;Dynatrace ReactNative plugin&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 09:33:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259660#M6359</guid>
      <dc:creator>Thomas_Wirth1</dc:creator>
      <dc:date>2024-10-18T09:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259663#M6360</link>
      <description>&lt;P&gt;You have to use the Dynatrace Android Gradle plugin because it adds the auto-instrumentation step to the Android app build.&lt;BR /&gt;When you are using the &lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/mobile-applications/instrument-android-app/instrumentation-via-oneagent-sdk/manual-instrumentation" target="_self"&gt;standalone manual instrumentation&lt;/A&gt; option, you have to instrument all web requests manually.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 09:38:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259663#M6360</guid>
      <dc:creator>Thomas_Wirth1</dc:creator>
      <dc:date>2024-10-18T09:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259668#M6361</link>
      <description>&lt;P&gt;So when we use OneAgent SDK on android, the web request will not be monitored automatically, it can only be supported by Android Gradle plugin ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 09:46:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259668#M6361</guid>
      <dc:creator>devggaurav</dc:creator>
      <dc:date>2024-10-18T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259675#M6362</link>
      <description>&lt;P&gt;Yes. If you want auto-instrumentation, you have to use the Dynatrace Android Gradle plugin.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 10:00:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/259675#M6362</guid>
      <dc:creator>Thomas_Wirth1</dc:creator>
      <dc:date>2024-10-18T10:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Dynatrace gradle plugin in android</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/260117#M6391</link>
      <description>&lt;P&gt;We can achieve tracking all api's using one agent sdk as well by creating an interceptor&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;class &lt;/SPAN&gt;&lt;SPAN&gt;DynatraceInterceptor&lt;/SPAN&gt;: &lt;SPAN&gt;Interceptor &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;override fun &lt;/SPAN&gt;&lt;SPAN&gt;intercept&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;chain&lt;/SPAN&gt;: &lt;SPAN&gt;Interceptor&lt;/SPAN&gt;.&lt;SPAN&gt;Chain&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;: &lt;SPAN&gt;Response &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;request &lt;/SPAN&gt;= &lt;SPAN&gt;chain&lt;/SPAN&gt;.request&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;uniqueRequestTag &lt;/SPAN&gt;= &lt;SPAN&gt;Dynatrace&lt;/SPAN&gt;.getRequestTag&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;timing &lt;/SPAN&gt;= &lt;SPAN&gt;Dynatrace&lt;/SPAN&gt;.getWebRequestTiming&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;uniqueRequestTag&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;newRequest &lt;/SPAN&gt;= &lt;SPAN&gt;request&lt;/SPAN&gt;.newBuilder&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;            .addHeader&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dynatrace&lt;/SPAN&gt;.getRequestTagHeader&lt;SPAN&gt;()&lt;/SPAN&gt;, &lt;SPAN&gt;uniqueRequestTag&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;            .build&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;timing&lt;/SPAN&gt;.startWebRequestTiming&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;return try &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;val &lt;/SPAN&gt;&lt;SPAN&gt;response &lt;/SPAN&gt;= &lt;SPAN&gt;chain&lt;/SPAN&gt;.proceed&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;newRequest&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;timing&lt;/SPAN&gt;.stopWebRequestTiming&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;.&lt;SPAN&gt;url&lt;/SPAN&gt;.toUrl&lt;SPAN&gt;()&lt;/SPAN&gt;, &lt;SPAN&gt;response&lt;/SPAN&gt;.&lt;SPAN&gt;code&lt;/SPAN&gt;, &lt;SPAN&gt;response&lt;/SPAN&gt;.&lt;SPAN&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;response&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;catch &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;e&lt;/SPAN&gt;: &lt;SPAN&gt;Exception&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;timing&lt;/SPAN&gt;.stopWebRequestTiming&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;.&lt;SPAN&gt;url&lt;/SPAN&gt;.toUrl&lt;SPAN&gt;()&lt;/SPAN&gt;, -&lt;SPAN&gt;1&lt;/SPAN&gt;, &lt;SPAN&gt;e&lt;/SPAN&gt;.toString&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;e&lt;/SPAN&gt;.printStackTrace&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;throw &lt;/SPAN&gt;&lt;SPAN&gt;e&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;and this inteceptor at your httpClient for android mostly its retrofit&lt;BR /&gt;&lt;BR /&gt;val client = OkHttpClient.Builder()&lt;BR /&gt;.addInterceptor(DynatraceInterceptor())&lt;BR /&gt;.build()&lt;BR /&gt;&lt;BR /&gt;and you can now track all api request without changes and using one agent SDK&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 08:17:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Add-Dynatrace-gradle-plugin-in-Android/m-p/260117#M6391</guid>
      <dc:creator>devggaurav</dc:creator>
      <dc:date>2024-10-22T08:17:59Z</dc:date>
    </item>
  </channel>
</rss>

