Annotate logs for logs in context using APM agent APIs

If you use log management and APM, you can configure logs in context to correlate log data with other New Relic features.

If you use a logging framework not covered by our existing logs in context solutions, we provide a way for you to configure your logging libraries to achieve annotated logs necessary for logs in context.

APM agent trace metadata and linking metadata APIs

To get properly annotated logs for logs in context, use APM agent API calls (listed below). These APIs pass metadata required for linking log data to other New Relic data. This metadata is referred to as trace metadata and linking metadata. For tips on using these, see Resources for correct annotation.

APM agent APIs:

Resources for correctly annotating logs

For more information on using the trace metadata and linking metadata APIs to annotate logs for logs in context, see the following resources:

For more help

If you need more help, check out these support and learning resources: