Interface ConfigurableLogRecordExporterProvider
-
- All Known Implementing Classes:
OtlpLogRecordExporterProvider
public interface ConfigurableLogRecordExporterProvider
A service provider interface (SPI) for providing additional exporters that can be used with the autoconfigured SDK. If theotel.logs.exporter
property contains a value equal to what is returned bygetName()
, the exporter returned bycreateExporter(ConfigProperties)
will be enabled and added to the SDK.- Since:
- 1.19.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LogRecordExporter
createExporter(ConfigProperties config)
Returns aLogRecordExporter
that can be registered to OpenTelemetry by providing the property value specified bygetName()
.java.lang.String
getName()
Returns the name of this exporter, which can be specified with theotel.logs.exporter
property to enable it.
-
-
-
Method Detail
-
createExporter
LogRecordExporter createExporter(ConfigProperties config)
Returns aLogRecordExporter
that 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.logs.exporter
property to enable it. The name returned should NOT be the same as any other exporter name. If the name does conflict with another exporter name, the resulting behavior is undefined and it is explicitly unspecified which exporter will actually be used.
-
-