Add ability to filter out metric by id name
Users might want to the ability to filter out metrics that are not necessary for them to view. Created a static getMeterFilter function in MeterRegistryFactory to filter out metrics user does not want to see. Created new Property GENERAL_MICROMETER_ID_FILTERS, and filters specified via this property will be added to meter registries created in MeterInfoImpl
Closes issue #4599
This PR is failing checks because we need to specifically allow the MeterFilter class within the apilyzer configuration. You need to insert the following:
<allow>io[.]micrometer[.]core[.]instrument[.]config[.]MeterFilter</allow>
to core/pom.xml, directly below where there is a similar statement for MeterRegistry, line 301, so that we then have the following:
<allows>
<allow>io[.]micrometer[.]core[.]instrument[.]MeterRegistry</allow>
<allow>io[.]micrometer[.]core[.]instrument[.]config[.]MeterFilter</allow>
<allow>io[.]opentelemetry[.]api[.]OpenTelemetry</allow>
...
Today is the last day of my internship and I am returning back to school, so I would need someone else to take over this ticket if its a good enhancement to move forward with, as I won't have time to focus on it.