Tracing
Cadenza adds W3C trace context information (trace-id, parent-Id and span-id) to any related log and the outgoing http requests.
HTTP Requests
Logging
| Parameter | Description |
|---|---|
ID of a bundled set of queries or requests, used to uniquely identify a distributed trace across multiple programs. |
|
ID of the span for the currently running query or request |
|
parentSpanId |
ID of the parent span of the current span |
spanStartTime |
Start time of the current span, as ISO-8601 string |
spanEndTime |
End time of the current span, as ISO-8601 string |
Cadenza sets the W3C trace context information (traceId, parentSpanId and spanId) to the MDC. This enables information to be included in every log entry created during a request.
To enable logging of trace information, the system property "log4j2.isThreadContextMapInheritable" must be set to "true", see Environment Variables, System Properties and Other Runtime Configuration Options.
| The system property is already enabled in our distribution and Docker images. |
Span start and end events can be logged by setting the CADENZA_LOGLEVEL_REQUEST_TRACING system property to INFO.