• EnglishEspañol日本語한국어Português
  • Log inStart now

Instrument your non-containerized Lambda function

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

Before you begin

Instrumentation methods

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

  • Command Line Interface (CLI): Use the AWS CLI to quickly add the New Relic layer to your Lambda functions.
  • Serverless Framework: Seamlessly integrate New Relic instrumentation into your serverless deployments.
  • CloudFormation/SAM: Include the New Relic layer in your infrastructure-as-code templates.
  • Terraform: Easily manage New Relic instrumentation alongside your other infrastructure resources.
  • Manual Instrumentation: Directly add the New Relic layer through the AWS Lambda console for more granular control.

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?

Copyright © 2024 New Relic Inc.

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