You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent/src/main/java/com/microsoft/applicationinsights/agent/internal/config/builder/BuiltInInstrumentationBuilder.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ public class BuiltInInstrumentationBuilder {
Copy file name to clipboardExpand all lines: agent/src/main/java/com/microsoft/applicationinsights/agent/internal/config/builder/XmlAgentConfigurationBuilder.java
Copy file name to clipboardExpand all lines: azure-application-insights-spring-boot-starter/src/main/java/com/microsoft/applicationinsights/autoconfigure/ApplicationInsightsProperties.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -416,9 +416,9 @@ static class Web {
416
416
privatebooleanenabled = true;
417
417
418
418
/**
419
-
* Flag to enable/disable enableW3C headers. It is disabled by default.
419
+
* Flag to enable/disable enableW3C headers. It is enabled by default.
420
420
*/
421
-
privatebooleanenableW3C = false;
421
+
privatebooleanenableW3C = true;
422
422
423
423
/**
424
424
* Flag to enable backward compatibility mode for W3C. By default this is
Copy file name to clipboardExpand all lines: test/smoke/testApps/SpringBootTest/src/smokeTest/java/com/springbootstartertest/smoketest/SpringbootSmokeTest.java
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ public void testResultCodeWhenRestControllerThrows() throws Exception {
Copy file name to clipboardExpand all lines: web/src/main/java/com/microsoft/applicationinsights/web/extensibility/modules/WebRequestTrackingTelemetryModule.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ public class WebRequestTrackingTelemetryModule implements WebTelemetryModule, Te
46
46
privateTelemetryClienttelemetryClient;
47
47
privatebooleanisInitialized = false;
48
48
49
-
publicbooleanisW3CEnabled = false;
49
+
publicbooleanisW3CEnabled = true;
50
50
51
51
/**
52
52
* Tag to indicate if W3C tracing protocol is enabled.
Copy file name to clipboardExpand all lines: web/src/test/java/com/microsoft/applicationinsights/web/extensibility/initializers/WebOperationIdTelemetryInitializerTests.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,10 @@ public void testRequestTelemetryInitializedWithOperationId() throws Exception {
81
81
RequestTelemetryrequestTelemetry = items.get(0);
82
82
83
83
// the WebRequestTrackingModule automatically creates a hierarchical ID for request telemetry of the
84
-
// following form: "|guid.", where guid is the OperationId
85
-
Assert.assertEquals("Operation id not match", requestTelemetry.getId(), "|" + requestTelemetry.getContext().getOperation().getId() + ".");
84
+
// following form: "|guid.spanid", where guid is the OperationId
Copy file name to clipboardExpand all lines: web/src/test/java/com/microsoft/applicationinsights/web/extensibility/modules/WebRequestTrackingTelemetryModuleTests.java
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,9 @@ public void testUserAgentIsBeingSet() throws Exception {
0 commit comments