APM Associated Logs¶
Guance supports RUM associated logs by injecting span_id, trace_id, env, service, and version into logs to associate with APM. Once associated, you can view the specific logs related to a request in APM.
Configuration¶
Before configuring associated logs, you need to:
- Install DataKit.
- After installing DataKit, enable DDtrace and configure the
env,service,versionand other parameters of the trace to associate with logs. At the same time, inject the log parametersspan_id,trace_id,env,service, andversioninto the application code to associate with APM parameters.