From 68c92b06d066d049a3d739840b5171199a503c6c Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Tue, 12 Mar 2024 01:20:24 +0200 Subject: [PATCH] Improve comment (#10801) --- .../server/route/PathMatcherStaticInstrumentation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/akka/akka-http-10.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkahttp/server/route/PathMatcherStaticInstrumentation.java b/instrumentation/akka/akka-http-10.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkahttp/server/route/PathMatcherStaticInstrumentation.java index 42e180328e..41d952ce17 100644 --- a/instrumentation/akka/akka-http-10.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkahttp/server/route/PathMatcherStaticInstrumentation.java +++ b/instrumentation/akka/akka-http-10.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkahttp/server/route/PathMatcherStaticInstrumentation.java @@ -46,7 +46,8 @@ public class PathMatcherStaticInstrumentation implements TypeInstrumentation { AkkaRouteHolder.endMatched(); return; } - // for remember the matched path in PathMatcherInstrumentation, otherwise we just use a * + // if present use the matched path that was remembered in PathMatcherInstrumentation, + // otherwise just use a * String prefix = VirtualField.find(PathMatcher.class, String.class).get(pathMatcher); if (prefix == null) { if (PathMatchers.Slash$.class == pathMatcher.getClass()) {