Skip to content

Commit 0cc8d1f

Browse files
committed
Added documentation for configuring OpenTelemetry SDK logs.
1 parent fa686bb commit 0cc8d1f

File tree

1 file changed

+13
-0
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,16 @@ To configure a given logger, `POST` a partial entity to the resource's URI, as t
3131
----
3232

3333
TIP: To "`reset`" the specific level of the logger (and use the default configuration instead), you can pass a value of `null` as the `configuredLevel`.
34+
35+
== OpenTelemetry
36+
By default, the OpenTelemetry SDK logs are not configured. You can provide the location of the OpenTelemetry logs endpoint to configure it:
37+
38+
[source,yaml]
39+
----
40+
management:
41+
otlp:
42+
logging:
43+
endpoint: "https://otlp.example.com:4318/v1/logs"
44+
----
45+
46+
Note: The OpenTelemetry Logback appender and Log4j appender are not part of Spring Boot. You have to provide and configure them yourself. For more details, https://github.com/spring-projects/spring-boot/pull/40961[see this pull request].

0 commit comments

Comments
 (0)