eclipse / microprofile-metrics

microprofile-metrics
Apache License 2.0
100 stars 66 forks source link

Clarify how it should be handled when metric annotations are applied via CDI stereotypes #527

Closed jmartisk closed 4 years ago

jmartisk commented 4 years ago

At the moment, the spec does not say what should happen for metrics applied via stereotypes. We might need to come up with some clarifications, and perhaps a set of TCK tests to verify this. Stereotypes can be applied to class level, or on producer fields/methods.

There might be some corner cases that need to be handled.

I suppose that if a stereotype adds a metric annotation that does not specify a name, the names should be generated as if it were applied directly, that means relative to the actual bean, not relative to the stereotype.