Skip to content

Commit 0c28cba

Browse files
committed
start
1 parent 76dbc9c commit 0c28cba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

instrumentation/java-http-server/library/src/main/java/io/opentelemetry/instrumentation/httpserver/OpenTelemetryService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void doFilter(HttpExchange exchange, Chain chain) throws IOException {
3333
try (Scope ignored = context.makeCurrent()) {
3434
chain.doFilter(exchange);
3535
} finally {
36-
instrumenter.end(context, exchange, exchange, null);
36+
instrumenter.end(context, exchange, null, null);
3737
}
3838
}
3939

instrumentation/java-http-server/testing/src/main/java/io/opentelemetry/instrumentation/httpserver/AbstractJdkHttpServerTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected HttpServer setupServer() throws IOException {
196196

197197
@Override
198198
protected void stopServer(HttpServer server) {
199-
server.stop(1000);
199+
server.stop(5000);
200200
}
201201

202202
@Override
@@ -211,6 +211,6 @@ protected void configure(HttpServerTestOptions options) {
211211
return expectedHttpRoute(endpoint, method);
212212
});
213213

214-
options.setTestPathParam(false);
214+
options.setTestPathParam(true);
215215
}
216216
}

0 commit comments

Comments
 (0)