Skip to content

Commit bd7e855

Browse files
Join routing context instrumentations again
1 parent 665badc commit bd7e855

File tree

2 files changed

+5
-40
lines changed

2 files changed

+5
-40
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
* @see RoutingContextImpl#getBodyAsJsonArray(int)
1616
*/
1717
@AutoService(InstrumenterModule.class)
18-
public class RoutingContextImplBodyInstrumentation extends InstrumenterModule.AppSec
18+
public class RoutingContextImplInstrumentation extends InstrumenterModule.AppSec
1919
implements Instrumenter.ForSingleType, Instrumenter.HasMethodAdvice {
2020

21-
public RoutingContextImplBodyInstrumentation() {
21+
public RoutingContextImplInstrumentation() {
2222
super("vertx", "vertx-4.0");
2323
}
2424

@@ -40,5 +40,8 @@ public void methodAdvice(MethodTransformer transformer) {
4040
.and(takesArguments(1))
4141
.and(takesArgument(0, int.class)),
4242
packageName + ".RoutingContextJsonAdvice");
43+
transformer.applyAdvice(
44+
named("setSession").and(takesArgument(0, named("io.vertx.ext.web.Session"))),
45+
packageName + ".RoutingContextSessionAdvice");
4346
}
4447
}

dd-java-agent/instrumentation/vertx-web-4.0/src/main/java/datadog/trace/instrumentation/vertx_4_0/server/RoutingContextImplSessionInstrumentation.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)