Interface MetricExporterFactory
-
public interface MetricExporterFactoryAMetricExporterFactoryacts as the bootstrap for aMetricExporterimplementation. An exporter must register its implementation of aMetricExporterFactorythrough the Java SPI framework.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.opentelemetry.sdk.metrics.export.MetricExporterfromConfig(Properties config)Creates an instance of aMetricExporterbased 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 aMetricExporterbased 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
-
-