Skip to content

Commit b4e1f06

Browse files
committed
remove sample code OpenTelemetryAppender s not in spring boot classpath. Replace by tips
1 parent c3ebcb4 commit b4e1f06

File tree

3 files changed

+2
-73
lines changed

3 files changed

+2
-73
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/loggers.adoc

+2-5
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ management:
4848

4949
NOTE: The OpenTelemetry Logback appender and Log4j appender are not part of Spring Boot, for more details, see the https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/logback/logback-appender-1.0/library[OpenTelemetry Logback appender] or https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/log4j/log4j-appender-2.17/library[OpenTelemetry Log4j2 appender] in the https://github.com/open-telemetry/opentelemetry-java-instrumentation[OpenTelemetry Java instrumentation GitHub repository]
5050

51-
You have to add the appender to your logback-spring.xml or log4j-spring.xml.
52-
53-
In order to function, OpenTelemetryAppender needs access to an OpenTelemetry instance. This must be set programmatically during application startup as follows:
54-
55-
include-code::logback/OpentelemetryLoggerConfiguration[]
51+
TIP: Ensure that you add the appender to your `logback.xml` or `logback-spring.xml` (or the equivalent configuration file for Log4j).
5652

53+
TIP: The `OpenTelemetryAppender` requires access to an OpenTelemetry instance to function properly. This instance must be set programmatically during application startup by using an `ApplicationListener` for the `ApplicationReadyEvent`.

spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/actuator/loggers/opentelemetry/logback/OpentelemetryLoggerConfiguration.java

-34
This file was deleted.

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/actuator/loggers/opentelemetry/logback/OpentelemetryLoggerConfiguration.kt

-34
This file was deleted.

0 commit comments

Comments
 (0)