-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include interfaces in lookup to resolve @path annotation in order to produce correct path-template used for metrics. Replaced deprecated method calls with recommended one (cherry picked from commit 07f3a9b)
- Loading branch information
1 parent
c250c8f
commit 1041591
Showing
5 changed files
with
107 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...eter-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResourceApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.PathParam; | ||
|
||
// Splitting JAX-RS annotations to interfaces tests the behaviour of | ||
// io.quarkus.resteasy.deployment.RestPathAnnotationProcessor | ||
public interface MessageResourceApi extends MessageResourceNestedApi { | ||
|
||
@GET | ||
@Path("match/{id}/{sub}") | ||
String match(@PathParam("id") String id, @PathParam("sub") String sub); | ||
} |
13 changes: 13 additions & 0 deletions
13
...rometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResourceNestedApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.PathParam; | ||
|
||
// Testing deep lookup of Path-annotation | ||
public interface MessageResourceNestedApi { | ||
|
||
@GET | ||
@Path("match/{text}") | ||
String optional(@PathParam("text") String text); | ||
} |