• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
        • Enterprise Synthetic Monitoring
      • Synthetic Classic
        • Synthetic Classic Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by shandi p. · May 07 at 03:31 AM · configuration 7.0 appmon 7 android errors

android isntrumentation

hay guys,

anybody can help me about android manual instrumentation?
for information, the customer use the environment :

1. dynatrace 7.0
2. android with gradle 3.3.2

I have done instrumentation manually, by entering dependencies as follows :

classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.dynatrace.tools:android:7.+'

apply plugin: 'com.dynatrace.tools.android'

dynatrace {

defaultConfig {

applicationId 'm2u.maybank.co.id'

startupPath 'https://******.co.id/TEST'

agentProperties 'DTXAllowCookies':'true'

agentProperties 'DTXSetCookiesForDomain':'https://******.co.id/'

agentProperties 'DTXLogLevel': 'debug'

agentProperties 'DTXSendEmptyAutoAction': 'true'

agentProperties 'DTXAllowAnyCert': 'true'

agentProperties 'DTXHybridApplication': 'true'//environmentId 'bf97052cfu'
//cluster 'https://bf.dynatrace.com'}
}

implementation 'com.dynatrace.tools:android:7.+'

and we get information error :

Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/sepdinata.priadi/Documents/DEV/UIUX Mobile/M2UMobile/m2umobile/platforms/android/app/build/tmp/prepareApkit/dynatrace-mobile-agent-android-7.2.4.1262/Android/auto-instrumentor/instrument.sh'' finished with non-zero exit value 5

thanks for your help guys.

thanks

Shandi Aji P

error.txt

error.txt (16.8 kB)
Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by shandi p. · May 07 at 08:52 AM

hy @Rajesh S.

can you help me about this problem?
the problem is we have appmon version 7.0, but im using the latest Dynatrace Plugin (7.2.4.1262) and the Android Gradle Plugin (3.3).

i need your suggestion, its okey or something wrong?

thanks

shandi aji p

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

avatar image Thomas W. · May 08 at 07:48 AM 0
Share

You can use the version 7.2.4.1262 of the Dynatrace Gradle plugin with AppMon 7.0. But there are some limitations. One of these limitations is that stand-alone web requests are not supported by AppMon 7.0. This feature can't be deactivated because the property

DTXInstrumentWebRequestActionWrapping was removed in the 7.2 version. You can find more details in the documentation.

avatar image

Answer by Paul S. · May 07 at 07:07 AM

Hi Shandi,
do you have the Instant Run feature enabled? If so, please disable it and try again (Settings > Build, Execution, Deployment > Instant Run).
If the build still fails please provide us the log files you find in:

<pathToPorject>\<project>\<module>\build\tmp\autoInstrument<variant>\logs and the name is AIA_<date>.log

best regards,

Paul

Comment

People who like this

0 Show 6 · Share
10 |2000000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

avatar image shandi p. · May 07 at 08:00 AM 0
Share

hy @Paul S.,

how about the version that we have, its no problem about the version?

thanks

shandi aji p

avatar image Paul S. shandi p. · May 07 at 08:27 AM 0
Share

You are using the latest Dynatrace Plugin (7.2.4.1262) and the Android Gradle Plugin (3.3) this combination is fine and should work.
You mentioned that you want to do "manual instrumentation". This means you only have add the Agent library dependency (implementation 'com.dynatrace.tools:android:7.+') and then you manually have to call the Dynatrace.startup call and all the monitoring calls you like.
In this scenario nothing is done automatically and you would neither need the classpath dependency (classpath 'com.dynatrace.tools:android:7.+') nor the dynatrace configuration block in your gradle file.

These two are only required if you want to do auto-instrumentation or mixed instrumentation.
Mixed instrumentation means that you let the plugin automatically insert some monitoring calls. For example monitoring calls for webrequests and the agent startup call. But you can also add some monitoring calls manually.
To use mixed instrumentation you need the classpath dependency (that you already have) and the dynatrace configuration block as well as the "apply" statement for applying the plugin (you also have that both). However, in the dependencies block of you gradle file you need

implementation dynatrace.agent()
// instead of:
implementation 'com.dynatrace.tools:android:7.+'

So please remove the latter dependency if you want to use mixed instrumentation.

For auto-instrumentation you only need classpath dependency, apply statement and dynatrace configuration block. No further dependencies in the dependencies-block

avatar image shandi p. · May 07 at 08:43 AM 0
Share

hy @Paul S.

oke im understand with your suggestion,

yes im using the latest Dynatrace Plugin (7.2.4.1262) and the Android Gradle Plugin (3.3),

but appmon version is 7.0, there is no problem with the appmon version with the dynatrace plugin and AGP 3.3 ?

thanks

shandi aji p

avatar image Paul S. shandi p. · May 07 at 09:10 AM 0
Share

hi,

i think you cannot use an application that has the 7.2 agent with your Appmon 7.0 environment. There is no more support for 7.0.
Please try to upgrade

avatar image shandi p. Paul S. · Aug 14 at 08:47 AM 0
Share

hy paul,

long time no see,

i've done upgrade the dynatrace server to 7.2 version but i still failed the instrumentation.

can you help me?

https://www.dropbox.com/s/5yklyn3qq3wucju/AIA_2019-08-14_15-32-50.log?dl=0

this is log of instrumentation.


thanks

shandi aji p

avatar image Patrick H. shandi p. · Aug 14 at 08:50 AM 0
Share

for handling instrumentation failures like this I suggest to create a Support ticket as this is a better way of handling it and you do not have to share your files publicly

Join the conversation!

First steps in the forum
Community User Guide

LIVE WEBINAR

"Power Demo: Software Intelligence for Cloud Infrastructure"


DECEMBER 12, 10:00 AM GMT / 2:00 PM ET

Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Live webinar: Ensuring Digital Business Availability with Dynatrace

Learn how Dynatrace Real User Monitoring automatically detects errors that impact your end users caused by erroneous 3rd party or CDNs.
December 10, 4:00 pm CET / 10:00 am ET
Register here

Follow this Question

Answers Answers and Comments

38 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Could not resolve FQDN for ip server - Dynatrace service Collector 1 Answer

how to instrument an android native app 3 Answers

android manual instrumentation 2 Answers

Dynatrace Log4net log from MongoDB 3 Answers

Is there a way to globally exclude clients 1 Answer

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api errors dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java browser agent community user guide hybris javascript appmon sensors good to know search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow diagnostics user session monitoring unique users continuous delivery configuration alerting NGINX splitting business transaction client 6.3 installation chart database scheduler apache mobileapp RUM php dashlet azure purepath plugins agent 7.1 appmonsaas messagebroker nodejs 6.2 incidents android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A
      • Enterprise Synthetic Monitoring
    • Synthetic Classic
      • Synthetic Classic Open Q&A