File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
micrometer-core/src/main/java/io/micrometer/core/instrument/binder/jersey/server Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ class JerseyKeyValues {
3838 private static final KeyValue URI_ROOT = JerseyObservationDocumentation .JerseyLegacyLowCardinalityTags .URI
3939 .withValue ("root" );
4040
41+ private static final KeyValue URI_UNKNOWN = JerseyObservationDocumentation .JerseyLegacyLowCardinalityTags .URI
42+ .withValue ("UNKNOWN" );
43+
4144 private static final KeyValue EXCEPTION_NONE = JerseyObservationDocumentation .JerseyLegacyLowCardinalityTags .EXCEPTION
4245 .withValue ("None" );
4346
@@ -93,6 +96,9 @@ static KeyValue uri(RequestEvent event) {
9396 }
9497 }
9598 String matchingPattern = JerseyTags .getMatchingPattern (event );
99+ if (matchingPattern == null ) {
100+ return URI_UNKNOWN ;
101+ }
96102 if (matchingPattern .equals ("/" )) {
97103 return URI_ROOT ;
98104 }
You can’t perform that action at this time.
0 commit comments