Currently we emit metrics with the API name in the metric name, for example polaris.principals.getPrincipal. This is difficult to query in i.e. Grafana; metric names are not intended to be "dynamic".
This PR adds a new equivalent metric polaris.TimedApi with the API_NAME tag.
Type of change
[X] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
[X] Created a test for TimedApplicationEventListener
Checklist:
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] If adding new functionality, I have discussed my implementation with the community using the linked GitHub issue
Description
Currently we emit metrics with the API name in the metric name, for example
polaris.principals.getPrincipal
. This is difficult to query in i.e. Grafana; metric names are not intended to be "dynamic".This PR adds a new equivalent metric
polaris.TimedApi
with theAPI_NAME
tag.Type of change
How Has This Been Tested?
Checklist: