Interface ConfigurableMetricExporterProvider
-
- All Known Implementing Classes:
OtlpMetricExporterProvider
public interface ConfigurableMetricExporterProviderA service provider interface (SPI) for providing additional exporters that can be used with the autoconfigured SDK. If theotel.metrics.exporterproperty contains a value equal to what is returned bygetName(), the exporter returned bycreateExporter(ConfigProperties)will be enabled and added to the SDK.The push-based
MetricExporters supplied by this SPI are paired with aPeriodicMetricReader. SeeConfigurableMetricReaderProviderfor providing pull-basedMetricReaders.- Since:
- 1.15.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricExportercreateExporter(ConfigProperties config)Returns aMetricExporterthat can be registered to OpenTelemetry by providing the property value specified bygetName().java.lang.StringgetName()Returns the name of this exporter, which can be specified with theotel.metrics.exporterproperty to enable it.
-
-
-
Method Detail
-
createExporter
MetricExporter createExporter(ConfigProperties config)
Returns aMetricExporterthat can be registered to OpenTelemetry by providing the property value specified bygetName().
-
getName
java.lang.String getName()
Returns the name of this exporter, which can be specified with theotel.metrics.exporterproperty to enable it. The name returned should NOT be the same as any other exporter / reader name, either from other implementations of this SPI orConfigurableMetricReaderProvider. If the name does conflict with another exporter / reader name, the resulting behavior is undefined and it is explicitly unspecified which exporter / reader will actually be used.
-
-