We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c7510b commit 6301056Copy full SHA for 6301056
examples/instrumentation-quickstart/src/main/resources/log4j2.xml
@@ -27,7 +27,10 @@
27
https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-templates -->
28
<JsonTemplateLayout eventTemplateUri="classpath:GcpLayout.json">
29
<!-- Extend the included GcpLayout to include the trace and span IDs from Mapped
30
- Diagnostic Context (MDC) so that Cloud Logging can correlate Logs and Spans -->
+ Diagnostic Context (MDC) so that Cloud Logging can correlate Logs and Spans
31
+
32
+ Since log4j2 2.24.0, GcpLayout.json already includes trace context logging from MDC and
33
+ the below additional fields are no longer needed -->
34
<EventTemplateAdditionalField
35
key="logging.googleapis.com/trace"
36
format="JSON"
0 commit comments