Skip to content

Commit 516210a

Browse files
committed
remove commented out code
1 parent ef87e89 commit 516210a

File tree

1 file changed

+1
-15
lines changed
  • instrumentation/spring/spring-web/spring-web-6.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/web/v6_0

1 file changed

+1
-15
lines changed

instrumentation/spring/spring-web/spring-web-6.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/spring/web/v6_0/SpringRestTemplateTest.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,6 @@ protected void configure(HttpClientTestOptions.Builder optionsBuilder) {
100100

101101
// no enum value for TEST
102102
optionsBuilder.disableTestNonStandardHttpMethod();
103-
optionsBuilder.setExpectedClientSpanNameMapper(
104-
(uri, method) -> {
105-
return method + " " + uri.getPath();
106-
/*
107-
switch (uri.toString()) {
108-
case "http://localhost:61/": // unopened port
109-
case "https://192.0.2.1/": // non routable address
110-
return "CONNECT";
111-
default:
112-
return HttpClientTestOptions.DEFAULT_EXPECTED_CLIENT_SPAN_NAME_MAPPER.apply(
113-
uri, method);
114-
}
115-
116-
*/
117-
});
103+
optionsBuilder.setExpectedClientSpanNameMapper((uri, method) -> method + " " + uri.getPath());
118104
}
119105
}

0 commit comments

Comments
 (0)