java.lang.Object
org.springframework.boot.actuate.autoconfigure.tracing.otlp.OtlpAutoConfiguration

@AutoConfiguration @ConditionalOnEnabledTracing @ConditionalOnClass({io.micrometer.tracing.otel.bridge.OtelTracer.class,io.opentelemetry.sdk.trace.SdkTracerProvider.class,io.opentelemetry.api.OpenTelemetry.class,io.opentelemetry.exporter.otlp.http.trace.OtlpHttpSpanExporter.class}) @EnableConfigurationProperties(OtlpProperties.class) public class OtlpAutoConfiguration extends Object
Auto-configuration for OTLP. Brave does not support OTLP, so we only configure it for OpenTelemetry. OTLP defines three transports that are supported: gRPC (/protobuf), HTTP/protobuf, HTTP/JSON. From these transports HTTP/JSON is not supported by the OTel Java SDK, and it seems there are no plans supporting it in the future, see: opentelemetry-java#3651. Because this class configures components from the OTel SDK, it can't support HTTP/JSON. To keep things simple, we only auto-configure HTTP/protobuf. If you want to use gRPC, define an OtlpGrpcSpanExporter and this auto-configuration will back off.
Since:
3.1.0
Author:
Jonatan Ivanov
  • Constructor Details

    • OtlpAutoConfiguration

      public OtlpAutoConfiguration()