How disable dynatrace for debug builds android

404 views Asked by At

I want to disable dynatrace to collect debug builds

In my build.gradle (android):

dynatrace {
    configurations {
        debug {
            enabled false
        }
        release {
            enabled true
            autoStart {
                autoStart.enabled false
            }
        }
    }
}

but in tasks trace I see next

> Task :dynatrace:preBuild UP-TO-DATE
> Task :dynatrace:preDebugBuild UP-TO-DATE
> Task :dynatrace:compileDebugAidl NO-SOURCE
> Task :dynatrace:packageDebugRenderscript NO-SOURCE
> Task :dynatrace:generateDebugResValues FROM-CACHE
> Task :dynatrace:generateDebugResources UP-TO-DATE
> ...
1

There are 1 answers

0
Ivan Vovk On

Use this acticle. You have to create 2 separate apps in Dynatrace and use this config. After that your development data(debug) removes from the production data.

dynatrace {
    configurations {
        debug {
            variantFilter "[dD]ebug"
            autoStart {
                applicationId '<DebugApplicationID>'
                beaconUrl '<ProvidedBeaconURL>'
            }
        }
        prod {
            variantFilter "[rR]elease"
            autoStart {
                applicationId '<ProductionApplicationID>'
                beaconUrl '<ProvidedBeaconURL>'
            }
        }
    }
}