Interface MetricExporterFactory
-
public interface MetricExporterFactory
AMetricExporterFactory
acts as the bootstrap for aMetricExporter
implementation. An exporter must register its implementation of aMetricExporterFactory
through the Java SPI framework.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.opentelemetry.sdk.metrics.export.MetricExporter
fromConfig(Properties config)
Creates an instance of aMetricExporter
based on the provided configuration.Set<String>
getNames()
Returns names of metric exporters supported by this factory.
-
-
-
Method Detail
-
fromConfig
io.opentelemetry.sdk.metrics.export.MetricExporter fromConfig(Properties config)
Creates an instance of aMetricExporter
based on the provided configuration.- Parameters:
config
- The configuration- Returns:
- An implementation of a
MetricExporter
-
getNames
Set<String> getNames()
Returns names of metric exporters supported by this factory.Multiple names are useful for enabling a pair of span and metric exporters using the same name, while still having separate names for enabling them individually.
- Returns:
- The exporter names supported by this factory
-
-