File tree 1 file changed +6
-0
lines changed
micrometer-core/src/main/java/io/micrometer/core/instrument/binder/jersey/server
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ class JerseyKeyValues {
38
38
private static final KeyValue URI_ROOT = JerseyObservationDocumentation .JerseyLegacyLowCardinalityTags .URI
39
39
.withValue ("root" );
40
40
41
+ private static final KeyValue URI_UNKNOWN = JerseyObservationDocumentation .JerseyLegacyLowCardinalityTags .URI
42
+ .withValue ("UNKNOWN" );
43
+
41
44
private static final KeyValue EXCEPTION_NONE = JerseyObservationDocumentation .JerseyLegacyLowCardinalityTags .EXCEPTION
42
45
.withValue ("None" );
43
46
@@ -93,6 +96,9 @@ static KeyValue uri(RequestEvent event) {
93
96
}
94
97
}
95
98
String matchingPattern = JerseyTags .getMatchingPattern (event );
99
+ if (matchingPattern == null ) {
100
+ return URI_UNKNOWN ;
101
+ }
96
102
if (matchingPattern .equals ("/" )) {
97
103
return URI_ROOT ;
98
104
}
You can’t perform that action at this time.
0 commit comments