This is necessary to be able to correlate logs and traces.
Our log currently are non-OTLP formatted, so:
Overview
OTLP Logs Records have top level fields representing trace context. This document defines how trace context should be recorded in non-OTLP Log Formats.
To summarize, the following field names should be used in legacy formats:
If we have the tracing system enabled, all the application logs should include the trace_id, span_id and trace_flags as stated in Opentelemetry's specification: https://github.com/open-telemetry/opentelemetry-specification/blob/5d9cef817415a15aaa4883e184a38adec79096ed/specification/compatibility/logging_trace_context.md#overview
This is necessary to be able to correlate logs and traces.
Our log currently are non-OTLP formatted, so: