Interface ConfigurableMetricExporterProvider
- All Known Implementing Classes:
OtlpMetricExporterProvider
public interface ConfigurableMetricExporterProvider
A service provider interface (SPI) for providing additional exporters that can be used with the
autoconfigured SDK. If the
otel.metrics.exporter
property contains a value equal to what
is returned by getName()
, the exporter returned by createExporter(ConfigProperties)
will be enabled and added to the SDK.
The push-based MetricExporter
s supplied by this SPI are paired with a PeriodicMetricReader
. See ConfigurableMetricReaderProvider
for providing pull-based MetricReader
s.
- Since:
- 1.15.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateExporter
(ConfigProperties config) Returns aMetricExporter
that can be registered to OpenTelemetry by providing the property value specified bygetName()
.getName()
Returns the name of this exporter, which can be specified with theotel.metrics.exporter
property to enable it.
-
Method Details
-
createExporter
Returns aMetricExporter
that can be registered to OpenTelemetry by providing the property value specified bygetName()
. -
getName
String getName()Returns the name of this exporter, which can be specified with theotel.metrics.exporter
property 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.
-