[
https://issues.apache.org/jira/browse/FLINK-11923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler updated FLINK-11923:
-------------------------------------
Description: {{MetricReporters}} are currently instantiated in the
constructor of the {{MetricRegistryImpl,}} based on the reporter-specific
{{Configuration}} provided by the {{MetricRegistryConfiguration}}. To ease
testing it would be great if the MRC would instead provide {{Suppliers}}
instead, so that a reporter can be setup without having to go through the
configuration every time. (was: {{MetricReporters}} are currently instantiated
in the constructor of the {{MetricRegistryImpl}}. To ease testing it would be
great if instead already instantiated reporters are passed into the registry
instead, as this would allow testing of the registry without having to deal
with any configuration setup/parsing.)
> Refactor MetricRegistryConfiguration to provide MetricReporter suppliers
> ------------------------------------------------------------------------
>
> Key: FLINK-11923
> URL: https://issues.apache.org/jira/browse/FLINK-11923
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / Metrics
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Fix For: 1.9.0
>
>
> {{MetricReporters}} are currently instantiated in the constructor of the
> {{MetricRegistryImpl,}} based on the reporter-specific {{Configuration}}
> provided by the {{MetricRegistryConfiguration}}. To ease testing it would be
> great if the MRC would instead provide {{Suppliers}} instead, so that a
> reporter can be setup without having to go through the configuration every
> time.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)