-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
blockedThis issue or pull request is waiting on something else, and isn't actionable right nowThis issue or pull request is waiting on something else, and isn't actionable right nowenhancementNew feature or requestNew feature or requestpriority: p3
Description
The additional fields are here
opentelemetry-operations-java/examples/instrumentation-quickstart/src/main/resources/log4j2.xml
Lines 29 to 45 in d822ae8
| <!-- 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 nowThis issue or pull request is waiting on something else, and isn't actionable right nowenhancementNew feature or requestNew feature or requestpriority: p3