Skip to content

Commit 6acd2d8

Browse files
committed
Updating advice
1 parent b7e7d06 commit 6acd2d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

instrumentation/tomcat/tomcat-10.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/tomcat/v10_0/Tomcat10ServerHandlerAdvice.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ public static AdviceScope start(Request request, Response response) {
4444
return new AdviceScope(context, scope);
4545
}
4646

47-
private void end(Request request, Response response, Throwable throwable) {
47+
public void end(Request request, Response response, Throwable throwable) {
4848
helper().end(request, response, throwable, context, scope);
4949
}
5050
}
5151

52+
@Nullable
5253
@Advice.OnMethodEnter(suppress = Throwable.class)
5354
public static AdviceScope onEnter(
5455
@Advice.Argument(0) Request request, @Advice.Argument(1) Response response) {

0 commit comments

Comments
 (0)