Skip to content

Commit ae27c93

Browse files
pirgeoarminru
andcommitted
Turn OneAgent Enrichment on by default and update doc
Co-authored-by: Armin Ruech <[email protected]>
1 parent 1759427 commit ae27c93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatraceProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ public class DynatraceProperties extends StepRegistryProperties {
8484
private String metricKeyPrefix;
8585

8686
/**
87-
* An optional Boolean that allows enabling of the OneAgent metadata export. Off by
87+
* An optional Boolean that allows enabling of the OneAgent metadata export. On by
8888
* default.
8989
*
9090
* API v1: not applicable (ignored), API v2: optional
9191
*/
92-
private Boolean enrichWithOneAgentMetadata = false;
92+
private Boolean enrichWithOneAgentMetadata = true;
9393

9494
/**
9595
* Optional default dimensions that are added to all metrics in the form of key-value

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/dynatrace/DynatracePropertiesConfigAdapterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void defaultValues() {
112112
assertThat(properties.getGroup()).isNull();
113113
assertThat(properties.getApiVersion()).isSameAs(DynatraceApiVersion.V1);
114114
assertThat(properties.getMetricKeyPrefix()).isNull();
115-
assertThat(properties.getEnrichWithOneAgentMetadata()).isFalse();
115+
assertThat(properties.getEnrichWithOneAgentMetadata()).isTrue();
116116
assertThat(properties.getDefaultDimensions()).isNull();
117117
}
118118

0 commit comments

Comments
 (0)