File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
buildSrc/src/main/kotlin/com/datadog/gradle/config
sample/kotlin/src/main/kotlin/com/datadog/android/sample Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ fun Project.publishingConfig(projectDescription: String) {
4949
5050 groupId = MavenConfig .GROUP_ID
5151 artifactId = projectName
52- version = AndroidConfig .VERSION .name
52+ version = AndroidConfig .VERSION .name + " -debug "
5353
5454 pom {
5555 name.set(projectName)
Original file line number Diff line number Diff line change @@ -238,10 +238,13 @@ class SampleApplication : Application() {
238238 }
239239 .setResourceEventMapper { event ->
240240 event.context?.additionalProperties?.put(ATTR_IS_MAPPED , true )
241- if (KEEP_UPLOAD_REQUEST_AS_RESOURCES ) {
242- event
243- } else {
241+ val isDdResource = event.resource.url.contains(
242+ DatadogSite .valueOf(BuildConfig .DD_SITE_NAME ).intakeEndpoint
243+ )
244+ if (isDdResource && ! KEEP_UPLOAD_REQUEST_AS_RESOURCES ) {
244245 null
246+ } else {
247+ event
245248 }
246249 }
247250 .setErrorEventMapper { event ->
You can’t perform that action at this time.
0 commit comments