Class OtlpSpanExporterAutoConfiguration
java.lang.Object
io.opentelemetry.instrumentation.spring.autoconfigure.exporters.otlp.OtlpSpanExporterAutoConfiguration
@Configuration
@AutoConfigureBefore(OpenTelemetryAutoConfiguration.class)
@Conditional(io.opentelemetry.instrumentation.spring.autoconfigure.exporters.otlp.OtlpSpanExporterAutoConfiguration.CustomCondition.class)
@ConditionalOnClass(io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter.class)
public class OtlpSpanExporterAutoConfiguration
extends Object
Configures
OtlpGrpcSpanExporter for tracing.
Initializes OtlpGrpcSpanExporter bean if bean is missing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.sdk.trace.export.SpanExporterotelOtlpSpanExporter(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties)
-
Constructor Details
-
OtlpSpanExporterAutoConfiguration
public OtlpSpanExporterAutoConfiguration()
-
-
Method Details
-
otelOtlpSpanExporter
@Bean(destroyMethod="") @ConditionalOnMissingBean({io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter.class,io.opentelemetry.exporter.otlp.http.trace.OtlpHttpSpanExporter.class}) public io.opentelemetry.sdk.trace.export.SpanExporter otelOtlpSpanExporter(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties)
-