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 :
apply plugin: 'com.dynatrace.tools.android'
agentProperties 'DTXLogLevel': 'debug'
agentProperties 'DTXSendEmptyAutoAction': 'true'
agentProperties 'DTXAllowAnyCert': 'true'
agentProperties 'DTXHybridApplication': 'true'//environmentId 'bf97052cfu'
and we get information error :
Caused by: org.gradle.process.internal.ExecException: Process 'command
finished with non-zero exit value 5
thanks for your help guys.
Shandi Aji P
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
You are using the latest Dynatrace Plugin (18.104.22.1682) 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.tools7.+') 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.tools7.+') 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
// instead of:
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
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?
this is log of instrumentation.
shandi aji p
You can use the version 22.214.171.1242 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.