APM Log Correlation¶
Guance supports RUM log correlation by injecting span_id
, trace_id
, env
, service
, and version
into logs to correlate with APM. After correlation, specific related logs for a request can be viewed in APM.
Configure Log Correlation¶
Before configuring log correlation, you need to:
After installing DataKit, enable DDtrace and configure the env
, service
, and version
parameters for the trace to correlate logs. Additionally, inject log parameters span_id
, trace_id
, env
, service
, and version
into the application code to associate with APM metrics.
For more configuration details, see DDtrace.