Skip to content

Dependency quarkus-micrometer-registry-prometheus removes @Path annotation from a class #38010

Open

Description

Describe the bug

If dependency quarkus-micrometer-registry-prometheus is present, @Path annotation disappears from resource classes in runtime. For example it completely removes the possibility of calling method path(Class resource) from jakarta.ws.rs.core.UriBuilder because the class is required to be annotated with @Path and runtime doesn't have this information

Expected behavior

@Path annotation should be present when calling getClass().getAnnotations()

Actual behavior

@Path annotation is not present when calling getClass().getAnnotations()

How to Reproduce?

It is very simple to reproduce this issue.

  1. Create application using:
    quarkus create app --extension='resteasy-jackson'
  2. Add dependency
    quarkus-micrometer-registry-prometheus
  3. Attach debugger to created hello() method
  4. Call endpoint http://localhost:8080/hello
  5. Execute code in the debugger
    getClass().getAnnotations()

Output of uname -a or ver

No response

Output of java -version

openjdk version "11.0.20" 2023-07-18 OpenJDK Runtime Environment Temurin-11.0.20+8 (build 11.0.20+8) OpenJDK 64-Bit Server VM Temurin-11.0.20+8 (build 11.0.20+8, mixed mode)

Quarkus version or git rev

3.2.9, 3.6.4

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions