Skip to content

Commit aa63bb7

Browse files
committed
Migrating RouteConcatenationInstrumentation
1 parent 9e9a0f7 commit aa63bb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

instrumentation/pekko/pekko-http-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/pekkohttp/v1_0/server/route/RouteConcatenationInstrumentation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public void transform(TypeTransformer transformer) {
3333
@SuppressWarnings("unused")
3434
public static class ApplyAdvice {
3535

36+
@Advice.AssignReturned.ToArguments(@Advice.AssignReturned.ToArguments.ToArgument(0))
3637
@Advice.OnMethodEnter(suppress = Throwable.class)
37-
public static void onEnter(
38-
@Advice.Argument(value = 0, readOnly = false)
39-
Function1<RequestContext, Future<RouteResult>> route) {
40-
route = new PekkoRouteWrapper(route);
38+
public static Object onEnter(
39+
@Advice.Argument(0) Function1<RequestContext, Future<RouteResult>> route) {
40+
return new PekkoRouteWrapper(route);
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)