• /
  • EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

Use APM agent APIs with logs in context

To correlate log data with other telemetry data, such as errors and distributed traces in APM, you can use APM logs in context. If your logging framework is not supported by our existing logs in context solutions, you can configure your logging libraries with our agent APIs.

APM agent trace metadata and linking metadata APIs

To get properly annotated logs for logs in context, use the following API calls for your APM agent. These APIs pass the required trace metadata and linking metadata to link your log data to other New Relic data.

APM agent APIs:

agent

API calls

Go

Java

.NET

Node.js

PHP

Python

Ruby

이 문서가 설치하는데 도움이 되셨나요?

Resources for correctly annotating logs

For more information about using the trace metadata and linking metadata APIs to annotate logs for logs in context, review the APM agent specifications in GitHub. These specifications include the required fields and properly formatted output.

Also, review the source code for our own manually installed logs in context extensions to see how we use these APIs:

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.