提交 280dcc23 编写于 作者: Z zentol

[hotfix][metrics] Remove unnecessary ScopeFormats constructor

上级 d11a9836
......@@ -97,7 +97,7 @@ public class MetricRegistryConfiguration {
scopeFormats = ScopeFormats.fromConfig(configuration);
} catch (Exception e) {
LOG.warn("Failed to parse scope format, using default scope formats", e);
scopeFormats = new ScopeFormats();
scopeFormats = ScopeFormats.fromConfig(new Configuration());
}
char delim;
......
......@@ -35,27 +35,6 @@ public class ScopeFormats {
// ------------------------------------------------------------------------
/**
* Creates all default scope formats.
*/
public ScopeFormats() {
this.jobManagerFormat = new JobManagerScopeFormat(MetricOptions.SCOPE_NAMING_JM.defaultValue());
this.jobManagerJobFormat = new JobManagerJobScopeFormat(
MetricOptions.SCOPE_NAMING_JM_JOB.defaultValue(), this.jobManagerFormat);
this.taskManagerFormat = new TaskManagerScopeFormat(MetricOptions.SCOPE_NAMING_TM.defaultValue());
this.taskManagerJobFormat = new TaskManagerJobScopeFormat(
MetricOptions.SCOPE_NAMING_TM_JOB.defaultValue(), this.taskManagerFormat);
this.taskFormat = new TaskScopeFormat(
MetricOptions.SCOPE_NAMING_TASK.defaultValue(), this.taskManagerJobFormat);
this.operatorFormat = new OperatorScopeFormat(
MetricOptions.SCOPE_NAMING_OPERATOR.defaultValue(), this.taskFormat);
}
/**
* Creates all scope formats, based on the given scope format strings.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册