eclipse/microprofile-metrics

Clarify: Which annotations can be used on private methods?

breakponchito opened this issue · 1 comments

When working to pass the TCK I saw that the following test were added to annotate private methods with @Gauge annotation:

that means that the following documentation is not correct because here is still indicating that non private methods should be used with this annotation:

Can someone clarify which annotations can be used with private methods?

Hello, sorry for the confusion. The specification does explicitly references "non-private" methods. However, similarly doesn't explicitly rule out private methods which open it up for interpretation.

But yes, this does cause a conflict as this wouldn't be the obvious interpretation of the wording in the specification.
We'll bring this up in the next MP Metrics call and discuss it and will either remove that TCK test in a 5.0.1 release or amend the specification.