Skip to content

Commit d99a4dd

Browse files
authored
Update feature bitmap (#2080)
1 parent 0b034de commit d99a4dd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/statsbeat/Feature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ enum Feature {
4646
RABBITMQ_DISABLED(16),
4747
SPRING_INTEGRATION_DISABLED(
4848
17), // preview instrumentation, spring-integration is ON by default in OTEL
49-
LEGACY_PROPAGATION_DISABLED(18),
49+
LEGACY_PROPAGATION_ENABLED(18), // legacy propagation is disabled by default
5050
GRIZZLY_ENABLED(19), // preview instrumentation, grizzly is OFF by default in OTEL
5151
STATSBEAT_DISABLED(20), // disable non-essential statsbeat
5252
QUARTZ_DISABLED(21), // preview instrumentation, quartz is ON by default in OTEL

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/statsbeat/FeatureStatsbeat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ void trackConfigurationOptions(Configuration config) {
9292
if (config.preview.authentication.enabled) {
9393
featureList.add(Feature.AAD);
9494
}
95-
if (!config.preview.legacyRequestIdPropagation.enabled) {
96-
featureList.add(Feature.LEGACY_PROPAGATION_DISABLED);
95+
if (config.preview.legacyRequestIdPropagation.enabled) {
96+
featureList.add(Feature.LEGACY_PROPAGATION_ENABLED);
9797
}
9898

9999
// disabled instrumentations

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/statsbeat/FeatureStatsbeatTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public void testAadEnabled() {
3838

3939
@Test
4040
public void testLegacyPropagationEnabled() {
41-
testFeatureTrackingDisablement(
41+
testFeatureTrackingEnablement(
4242
(config, value) -> config.preview.legacyRequestIdPropagation.enabled = value,
43-
Feature.LEGACY_PROPAGATION_DISABLED);
43+
Feature.LEGACY_PROPAGATION_ENABLED);
4444
}
4545

4646
@Test

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/statsbeat/StatsbeatTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public final class StatsbeatTestUtils {
109109
FEATURE_MAP_DECODING.put(15, Feature.AZURE_SDK_DISABLED);
110110
FEATURE_MAP_DECODING.put(16, Feature.RABBITMQ_DISABLED);
111111
FEATURE_MAP_DECODING.put(17, Feature.SPRING_INTEGRATION_DISABLED);
112-
FEATURE_MAP_DECODING.put(18, Feature.LEGACY_PROPAGATION_DISABLED);
112+
FEATURE_MAP_DECODING.put(18, Feature.LEGACY_PROPAGATION_ENABLED);
113113
FEATURE_MAP_DECODING.put(19, Feature.GRIZZLY_ENABLED);
114114
FEATURE_MAP_DECODING.put(20, Feature.STATSBEAT_DISABLED);
115115
FEATURE_MAP_DECODING.put(21, Feature.QUARTZ_DISABLED);

0 commit comments

Comments
 (0)