commit | 04b242bf9f7c13b9aea4c916b30441ae35e2fea7 | [log] [tgz] |
---|---|---|
author | Romain Manni-Bucau <rmannibucau@apache.org> | Sun Feb 24 20:38:53 2019 +0100 |
committer | Romain Manni-Bucau <rmannibucau@apache.org> | Sun Feb 24 20:38:53 2019 +0100 |
tree | 207b20c6105050097014c36a960dd3d32e775a39 | |
parent | 8753b83cdba3877c113862f11a293da484d3e3cd [diff] |
GERONIMO-6702 ensure we read the right value when trying to skip the tracing of some urls
diff --git a/geronimo-opentracing-common/src/main/java/org/apache/geronimo/microprofile/opentracing/common/microprofile/server/OpenTracingFilter.java b/geronimo-opentracing-common/src/main/java/org/apache/geronimo/microprofile/opentracing/common/microprofile/server/OpenTracingFilter.java index e542ae9..a3e7da8 100644 --- a/geronimo-opentracing-common/src/main/java/org/apache/geronimo/microprofile/opentracing/common/microprofile/server/OpenTracingFilter.java +++ b/geronimo-opentracing-common/src/main/java/org/apache/geronimo/microprofile/opentracing/common/microprofile/server/OpenTracingFilter.java
@@ -148,7 +148,7 @@ if (skipUrls != null && !skipUrls.isEmpty()) { final HttpServletRequest req = HttpServletRequest.class.cast(request); final String matching = req.getRequestURI().substring(req.getContextPath().length()); - if (forcedUrls.stream().anyMatch(p -> p.test(matching))) { + if (skipUrls.stream().anyMatch(p -> p.test(matching))) { chain.doFilter(request, response); return; }