Closed aabmass closed 4 months ago
Here is the summary of changes.
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run
label or use the checkbox below:
Log4j2's
JsonTemplateLayout
supports most of the Cloud Logging special JSON keys directly through theGcpLayout
event template. I still needed to map the OTel MDC keys for trace correlation, but am planning to contribute this upstream.One outstanding issue is converting the
trace_flags
hex value to a boolean, but it doesn't break Cloud Console iflogging.googleapis.com/trace_sampled
key is unset/false. See https://github.com/apache/logging-log4j2/discussions/2482.