Class LoggingSpanExporterAutoConfiguration


  • @Configuration
    @EnableConfigurationProperties(LoggingSpanExporterProperties.class)
    @AutoConfigureBefore(TracerAutoConfiguration.class)
    @ConditionalOnProperty(prefix="opentelemetry.trace.exporter.logging",
                           name="enabled",
                           matchIfMissing=true)
    @ConditionalOnClass(io.opentelemetry.exporter.logging.LoggingSpanExporter.class)
    public class LoggingSpanExporterAutoConfiguration
    extends Object
    Configures LoggingSpanExporter bean for tracing.
    • Constructor Detail

      • LoggingSpanExporterAutoConfiguration

        public LoggingSpanExporterAutoConfiguration()
    • Method Detail

      • otelLoggingSpanExporter

        @Bean
        @ConditionalOnMissingBean
        public io.opentelemetry.exporter.logging.LoggingSpanExporter otelLoggingSpanExporter()