From 6301056ea20b30b341b8e16b09c6d1dd2cfe1b7b Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Mon, 7 Oct 2024 10:57:00 -0400 Subject: [PATCH] Mention that newer Log4j2 versions do not need additional fields (#379) --- .../instrumentation-quickstart/src/main/resources/log4j2.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/instrumentation-quickstart/src/main/resources/log4j2.xml b/examples/instrumentation-quickstart/src/main/resources/log4j2.xml index e1aedfd4..3f3d91e1 100644 --- a/examples/instrumentation-quickstart/src/main/resources/log4j2.xml +++ b/examples/instrumentation-quickstart/src/main/resources/log4j2.xml @@ -27,7 +27,10 @@ https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-templates --> + Diagnostic Context (MDC) so that Cloud Logging can correlate Logs and Spans + + Since log4j2 2.24.0, GcpLayout.json already includes trace context logging from MDC and + the below additional fields are no longer needed -->