Skip to content

Commit f875175

Browse files
committed
comment
1 parent 1e8900f commit f875175

File tree

1 file changed

+3
-0
lines changed
  • instrumentation/spring/spring-webmvc/spring-webmvc-3.1/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/webmvc/v3_1/boot

1 file changed

+3
-0
lines changed

instrumentation/spring/spring-webmvc/spring-webmvc-3.1/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/webmvc/v3_1/boot/SpringBootBasedTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,16 @@ public Class<?> securityConfigClass() {
5555
@Override
5656
protected void configure(HttpServerTestOptions options) {
5757
super.configure(options);
58+
// older versions of Spring Boot return 200 for non-standard HTTP methods instead of 500
5859
options.setResponseCodeOnNonStandardHttpMethod(
5960
Boolean.getBoolean("testLatestDeps") ? 500 : 200);
6061
options.setExpectedException(new RuntimeException(EXCEPTION.getBody()));
6162
}
6263

6364
@Override
6465
protected boolean shouldTestDeferredResult() {
66+
// older versions of Spring Boot don't properly propagate context to async calls,
67+
// resulting in a separate trace instead of a single trace
6568
return Boolean.getBoolean("testLatestDeps");
6669
}
6770
}

0 commit comments

Comments
 (0)