Layered instrumentation (original) (raw)

After you've successfully linked your New Relic and AWS accounts you can instrument your Lambda functions by adding the New Relic Lambda layer. This integrates the New Relic agent, enabling automatic monitoring whenever your functions are invoked.

a diagram depicting non-containerized lambda function instrumentation

Before you begin

Instrumentation methods

New Relic offers several methods to instrument your AWS Lambda functions for comprehensive monitoring:

Regardless of the method you choose, the New Relic layer adds the New Relic agent to your functions. This agent automatically instruments your functions upon invocation, generating a payload, NR_LAMBDA_MONITORING, that is sent to New Relic via the New Relic Lambda extension.

Depending on your needs, you can choose to either bypass the extension and only see telemetry in CloudWatch, bypass CloudWatch, or use CloudWatch as a fallback. The CloudWatch section at end of this doc will guide you through each option.

Shipping methods

What's next