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 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) {
49
49
50
50
groupId = MavenConfig .GROUP_ID
51
51
artifactId = projectName
52
- version = AndroidConfig .VERSION .name
52
+ version = AndroidConfig .VERSION .name + " -debug "
53
53
54
54
pom {
55
55
name.set(projectName)
Original file line number Diff line number Diff line change @@ -238,10 +238,13 @@ class SampleApplication : Application() {
238
238
}
239
239
.setResourceEventMapper { event ->
240
240
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 ) {
244
245
null
246
+ } else {
247
+ event
245
248
}
246
249
}
247
250
.setErrorEventMapper { event ->
You can’t perform that action at this time.
0 commit comments