spring-boot/spring-boot-project
Jonatan Ivanov c1b295fd71 Log correlation IDs when Micrometer tracing is being used
Add support for logging correlation IDs with Logback or Log4J2 whenever
Micrometer tracing is being used.

The `LoggingSystemProperties` class now accepts a defualt value resolver
which will be used whenever a value isn't in the environment. The
`AbstractLoggingSystem` provides a resolver that supports the
`logging.pattern.correlation` property and will return a value whenever
`LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY` is set.

Using `LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY` allows us to
provide a consistent width for the correlation ID, even when it's
missing from the MDC.

The exact correlation pattern returned will depend on the `LoggingSytem`
implementation. Currently Logback and Log4J2 are supported and both
make use of a custom converter which delegates to a new
`CorrelationIdFormatter` class.

Closes gh-33280
2023-06-22 00:28:45 -07:00
..
spring-boot Log correlation IDs when Micrometer tracing is being used 2023-06-22 00:28:45 -07:00
spring-boot-actuator Upgrade to Liquibase 4.22.0 2023-06-19 16:30:52 +01:00
spring-boot-actuator-autoconfigure Log correlation IDs when Micrometer tracing is being used 2023-06-22 00:28:45 -07:00
spring-boot-autoconfigure Merge branch '3.1.x' 2023-06-21 12:28:20 -07:00
spring-boot-dependencies Merge branch '3.1.x' 2023-06-21 23:44:18 -07:00
spring-boot-devtools Merge branch '3.0.x' into 3.1.x 2023-06-13 13:52:10 +01:00
spring-boot-docker-compose Fix Maven-built native images with Docker Compose dependency 2023-06-21 11:44:30 +01:00
spring-boot-docs Log correlation IDs when Micrometer tracing is being used 2023-06-22 00:28:45 -07:00
spring-boot-parent Provide dependency management for Testcontainers 2023-03-23 16:49:08 +00:00
spring-boot-starters Merge branch '3.0.x' into 3.1.x 2023-06-15 14:47:21 +01:00
spring-boot-test Upgrade to Spring Framework 6.1.0-M1 2023-06-19 18:12:16 +01:00
spring-boot-test-autoconfigure Rework @AutoConfigureObservability and tracing auto-configurations 2023-06-16 14:09:10 +02:00
spring-boot-testcontainers Polish 2023-06-16 12:39:03 -07:00
spring-boot-tools Merge branch '3.1.x' 2023-06-21 13:15:06 +01:00