Class OtelFormatter
- java.lang.Object
-
- org.kairosdb.metrics4jplugin.opentelemetry.OtelFormatter
-
- All Implemented Interfaces:
Formatter,PostConstruct
public class OtelFormatter extends Object implements Formatter
-
-
Field Summary
Fields Modifier and Type Field Description booleanm_replaceDotStringm_separator
-
Constructor Summary
Constructors Constructor Description OtelFormatter()OtelFormatter(String separator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatReportedMetric(ReportedMetric reportedMetric, ReportedMetric.Sample sample, String metricName)voidinit(MetricsContext context)
-
-
-
Field Detail
-
m_separator
public final String m_separator
-
m_replaceDot
public final boolean m_replaceDot
-
-
Constructor Detail
-
OtelFormatter
public OtelFormatter()
-
OtelFormatter
public OtelFormatter(String separator)
-
-
Method Detail
-
formatReportedMetric
public String formatReportedMetric(ReportedMetric reportedMetric, ReportedMetric.Sample sample, String metricName)
- Specified by:
formatReportedMetricin interfaceFormatter
-
init
public void init(MetricsContext context)
- Specified by:
initin interfacePostConstruct
-
-