You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this use case can't work, RemoteApiSingleton is not a CDI bean at all in your application, therefore the metric interceptors don't apply. It's just a POJO returned from a producer, and you build it by calling its constructor directly. Annotated metrics only work on CDI beans.
@jmartisk is right. In CDI, interceptors are not applied to the return value of a producer method and the InterceptionFactory introduced in CDI 2.0 is not supported yet.
Describe the bug
When a produced bean has a public method annotated with
@Timed
, no metrics will be generated.@ApplicationScoped
beans work as expectedExpected behavior
Metrics are generated for produced beans
Actual behavior
no metrics generated
How to Reproduce?
quarkus-timed-producers.tar.gz
execute tests in the attached project
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: