File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/uid2/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77import com .uid2 .core .service .AttestationService ;
88import com .uid2 .core .service .OperatorJWTTokenProvider ;
99import com .uid2 .core .vertx .CoreVerticle ;
10+ import com .uid2 .core .vertx .Endpoints ;
1011import com .uid2 .shared .Const ;
1112import com .uid2 .shared .Utils ;
1213import com .uid2 .shared .attest .AttestationTokenService ;
@@ -183,7 +184,8 @@ private static void setupMetrics(MicrometerMetricsOptions metricOptions) {
183184 .meterFilter (new PrometheusRenameFilter ())
184185 .meterFilter (MeterFilter .replaceTagValues (Label .HTTP_PATH .toString (), actualPath -> {
185186 try {
186- return HttpUtils .normalizePath (actualPath ).split ("\\ ?" )[0 ];
187+ String normalized = HttpUtils .normalizePath (actualPath ).split ("\\ ?" )[0 ];
188+ return Endpoints .pathSet ().contains (normalized ) ? normalized : "/unknown" ;
187189 } catch (IllegalArgumentException e ) {
188190 return actualPath ;
189191 }
You can’t perform that action at this time.
0 commit comments