Class OtlpSpanExporterProvider
- java.lang.Object
-
- io.opentelemetry.exporter.otlp.internal.OtlpSpanExporterProvider
-
- All Implemented Interfaces:
AutoConfigureListener,ConfigurableSpanExporterProvider
public class OtlpSpanExporterProvider extends java.lang.Object implements ConfigurableSpanExporterProvider, AutoConfigureListener
SpanExporterSPI implementation forOtlpGrpcSpanExporterandOtlpHttpSpanExporter.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<MeterProvider>meterProviderRef
-
Constructor Summary
Constructors Constructor Description OtlpSpanExporterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAutoConfigure(OpenTelemetrySdk sdk)SpanExportercreateExporter(ConfigProperties config)Returns aSpanExporterthat can be registered to OpenTelemetry by providing the property value specified byConfigurableSpanExporterProvider.getName().java.lang.StringgetName()Returns the name of this exporter, which can be specified with theotel.traces.exporterproperty to enable it.(package private) OtlpGrpcSpanExporterBuildergrpcBuilder()(package private) OtlpHttpSpanExporterBuilderhttpBuilder()
-
-
-
Field Detail
-
meterProviderRef
private final java.util.concurrent.atomic.AtomicReference<MeterProvider> meterProviderRef
-
-
Method Detail
-
createExporter
public SpanExporter createExporter(ConfigProperties config)
Description copied from interface:ConfigurableSpanExporterProviderReturns aSpanExporterthat can be registered to OpenTelemetry by providing the property value specified byConfigurableSpanExporterProvider.getName().- Specified by:
createExporterin interfaceConfigurableSpanExporterProvider
-
getName
public java.lang.String getName()
Description copied from interface:ConfigurableSpanExporterProviderReturns the name of this exporter, which can be specified with theotel.traces.exporterproperty 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.- Specified by:
getNamein interfaceConfigurableSpanExporterProvider
-
httpBuilder
OtlpHttpSpanExporterBuilder httpBuilder()
-
grpcBuilder
OtlpGrpcSpanExporterBuilder grpcBuilder()
-
afterAutoConfigure
public void afterAutoConfigure(OpenTelemetrySdk sdk)
- Specified by:
afterAutoConfigurein interfaceAutoConfigureListener
-
-