Class OtelSink
- java.lang.Object
-
- org.kairosdb.metrics4jplugin.opentelemetry.OtelSink
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PostConstruct,MetricSink
public class OtelSink extends Object implements MetricSink, Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static StringOTEL_IS_MONOTONICstatic StringOTEL_UNIT
-
Constructor Summary
Constructors Constructor Description OtelSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FormattergetDefaultFormatter()voidinit(MetricsContext context)voidreportMetrics(List<FormattedMetric> metrics)voidsetExporter(io.opentelemetry.sdk.metrics.export.MetricExporter exporter)
-
-
-
Field Detail
-
OTEL_UNIT
public static final String OTEL_UNIT
- See Also:
- Constant Field Values
-
OTEL_IS_MONOTONIC
public static final String OTEL_IS_MONOTONIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
reportMetrics
public void reportMetrics(List<FormattedMetric> metrics)
- Specified by:
reportMetricsin interfaceMetricSink
-
getDefaultFormatter
public Formatter getDefaultFormatter()
- Specified by:
getDefaultFormatterin interfaceMetricSink
-
setExporter
public void setExporter(io.opentelemetry.sdk.metrics.export.MetricExporter exporter)
-
init
public void init(MetricsContext context)
- Specified by:
initin interfacePostConstruct
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-