Skip to content

Remove the EventTemplateAdditionalFields which were upstreamed in log4j2 #334

@aabmass

Description

@aabmass

The additional fields are here

<!-- Extend the included GcpLayout to include the trace and span IDs from Mapped
Diagnostic Context (MDC) so that Cloud Logging can correlate Logs and Spans -->
<EventTemplateAdditionalField
key="logging.googleapis.com/trace"
format="JSON"
value='{"$resolver": "mdc", "key": "trace_id"}'
/>
<EventTemplateAdditionalField
key="logging.googleapis.com/spanId"
format="JSON"
value='{"$resolver": "mdc", "key": "span_id"}'
/>
<EventTemplateAdditionalField
key="logging.googleapis.com/trace_sampled"
format="JSON"
value="true"
/>

These were upstreamed into log4j2 in apache/logging-log4j2#2498 but are not yet released. Once it is released, we can bump the version and remove.

Metadata

Metadata

Assignees

Labels

blockedThis issue or pull request is waiting on something else, and isn't actionable right nowenhancementNew feature or requestpriority: p3

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions