Class OtlpLogRecordExporterComponentProvider
- java.lang.Object
-
- io.opentelemetry.exporter.otlp.internal.OtlpLogRecordExporterComponentProvider
-
- All Implemented Interfaces:
ComponentProvider<LogRecordExporter>
public class OtlpLogRecordExporterComponentProvider extends java.lang.Object implements ComponentProvider<LogRecordExporter>
Declarative configuration SPI implementation forOtlpHttpLogRecordExporter
andOtlpGrpcLogRecordExporter
.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Constructor Summary
Constructors Constructor Description OtlpLogRecordExporterComponentProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogRecordExporter
create(StructuredConfigProperties config)
Configure an instance of the SDK extension component according to theconfig
.java.lang.String
getName()
The name of the exporter, to be referenced in configuration files.java.lang.Class<LogRecordExporter>
getType()
The type of SDK extension component.(package private) OtlpGrpcLogRecordExporterBuilder
grpcBuilder()
(package private) OtlpHttpLogRecordExporterBuilder
httpBuilder()
-
-
-
Method Detail
-
getType
public java.lang.Class<LogRecordExporter> getType()
Description copied from interface:ComponentProvider
The type of SDK extension component. For example, if providing instances of a custom span exporter, the type would beSpanExporter
.- Specified by:
getType
in interfaceComponentProvider<LogRecordExporter>
-
getName
public java.lang.String getName()
Description copied from interface:ComponentProvider
The name of the exporter, to be referenced in configuration files. For example, if providing instances of a custom span exporter for the "acme" protocol, the name might be "acme".This name MUST not be the same as any other component provider name which returns components of the same
type
. In other words,ComponentProvider.getType()
and name form a composite key uniquely identifying the provider.- Specified by:
getName
in interfaceComponentProvider<LogRecordExporter>
-
create
public LogRecordExporter create(StructuredConfigProperties config)
Description copied from interface:ComponentProvider
Configure an instance of the SDK extension component according to theconfig
.- Specified by:
create
in interfaceComponentProvider<LogRecordExporter>
- Parameters:
config
- the configuration provided where the component is referenced in a configuration file.- Returns:
- an instance the SDK extension component
-
httpBuilder
OtlpHttpLogRecordExporterBuilder httpBuilder()
-
grpcBuilder
OtlpGrpcLogRecordExporterBuilder grpcBuilder()
-
-