-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
enhancementA general enhancementA general enhancementmodule: micrometer-coreAn issue that is related to our core moduleAn issue that is related to our core moduleperformanceIssues related to general performanceIssues related to general performance
Milestone
Description
Please describe the feature request.
Currently, when the register method is called it invokes the registerMeterIfNecessary
and then getOrCreateMeter
. getOrCreateMeter applies the meter-filters and if any of the filters reply with a MeterFilterReply.DENY
then a NoopMeter is created and returned. For every MeterFilterReply.DENY
we go on creating a new NoopMeter which seems unnecessary. Instead, we should have DefaultInstances created for each of the NoopMeter and the same instance should be returned.
Rationale
NoopMeter as the name suggests no-op and does nothing. So returning a default instance should be fine.
Metadata
Metadata
Assignees
Labels
enhancementA general enhancementA general enhancementmodule: micrometer-coreAn issue that is related to our core moduleAn issue that is related to our core moduleperformanceIssues related to general performanceIssues related to general performance