Skip to content

Commit 1662b23

Browse files
committed
throwable is now read-only parameter
1 parent b241b45 commit 1662b23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

instrumentation/activej-http-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/activejhttp/ActivejHttpServerConnectionInstrumentation.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static void methodEnter(
6868
public static void methodExit(
6969
@Advice.This AsyncServlet asyncServlet,
7070
@Advice.Return(readOnly = false) Promise<HttpResponse> responsePromise,
71-
@Advice.Thrown(readOnly = false) Throwable throwable,
71+
@Advice.Thrown Throwable throwable,
7272
@Advice.Local("otelContext") Context context,
7373
@Advice.Local("otelScope") Scope scope,
7474
@Advice.Local("httpRequest") HttpRequest httpRequest) {
@@ -101,7 +101,6 @@ public static void methodExit(
101101
.build();
102102
instrumenter().end(context, httpRequest, httpResponse, throwable);
103103
responsePromise = Promise.of(httpResponse);
104-
throwable = null;
105104
} else {
106105
HttpResponse httpResponse =
107106
HttpResponse.notFound404()

0 commit comments

Comments
 (0)