Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

serverless-newrelic-lambda-layers

newrelic141.2kApache-2.05.8.0

Serverless plugin for NewRelic APM AWS Lambda layers.

lambda, serverless, sls, agent, analytics, metrics, telemetry, tracing, distributed tracing, layers

readme

<picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/dark/Community_Plus.png"><source media="(prefers-color-scheme: light)" srcset="https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Plus.png">New Relic Open Source community plus project banner.</picture>

serverless-newrelic-lambda-layers

A Serverless plugin to add New Relic observability using AWS Lambda Layers without requiring a code change.

Requirements

  • serverless v3.x & v4.x (This plugin has been tested to work with Serverless Framework v3 & v4)
  • Node >= 14.x (if using Serverless version 3)

Features

  • Installs and configures the New Relic AWS Integration
  • Supports Node.js, Python and Java runtimes (more runtimes to come)
  • No code change required to enable New Relic
  • Bundles New Relic's agent in a single layer
  • Configures CloudWatch subscription filters automatically

Install

With NPM:

npm install --save-dev serverless-newrelic-lambda-layers

(Note: this plugin's production dependencies are now defined as peer dependencies. NPM v7 and later will install missing peer dependencies automatically, but v6 does not.)

With yarn:

yarn add --dev serverless-newrelic-lambda-layers

Add the plugin to your serverless.yml:

plugins:
  - serverless-newrelic-lambda-layers

This plugin should come last in your plugin ordering, particularly if you're also using plugins such as serverless-plugin-typescript or serverless-webpack.

If you don't yet have a New Relic account, sign up here.

Grab your New Relic Account ID, your New Relic Personal API Key and plug them into your serverless.yml:

custom:
  newRelic:
    accountId: your-new-relic-account-id-here
    apiKey: your-new-relic-personal-api-key-here

Deploy:

sls deploy

And you're all set.

Usage

This plugin wraps your handlers without requiring a code change. If you're currently using a New Relic agent, you can remove the wrapping code you currently have and this plugin will do it for you automatically.

Config

The following config options are available via the newRelic section of the custom section of your serverless.yml:

accountId (required)

Your New Relic Account ID.

custom:
  newRelic:
    accountId: your-account-id-here

apiKey (required)

Your New Relic Personal API Key.

custom:
  newRelic:
    apiKey: your-api-key-here

If your function's source is committed to version control, you can avoid committing your license key by including it in your serverless.yml as a variable. See the Serverless docs on template variables for more information.

nrRegion (required for EU; optional for US)

If your New Relic account is based in the EU, make sure to specify your nrRegion in the custom block:

custom:
  newRelic:
    nrRegion: 'eu'

linkedAccount (optional)

A label for the New Relic Linked Account. This is how this integration will appear in New Relic. If not set, it will default to "New Relic Lambda Integration - <AWS ACcount ID>".

custom:
  newRelic:
    linkedAccount: your-linked-account-name

trustedAccountKey (optional)

Only required if your New Relic account is a sub-account. This needs to be the account ID for the root/parent account.

custom:
  newRelic:
    trustedAccountKey: your-parent-account-id

debug (optional)

Whether or not to enable debug mode. Must be a boolean value. This sets the log level to debug.

custom:
  newRelic:
    debug: true

enableExtension (optional)

Allows your function to deliver its telemetry to New Relic via AWS Lambda Extension. Defaults to true, so it can be omitted. To avoid delivering your telemetry via the extension, set to false.

custom:
  newRelic:
    enableExtension: true

sendFunctionLogs (optional)

Allows your function to deliver all of your function logs to New Relic via AWS Lambda Extension. The sendFunctionLogs config works identically to the older enableFunctionLogs. This new config has been introduced for consistency with sendExtensionLogs. While the new naming provides improved clarity, enableFunctionLogs remains available to ensure backward compatibility.

custom:
  newRelic:
    sendFunctionLogs: true

sendExtensionLogs (optional)

Allows your function to deliver all of your extension logs to New Relic via AWS Lambda Extension.

custom:
  newRelic:
    sendExtensionLogs: true

enableFunctionLogs (optional)

Allows your function to deliver all of your function logs to New Relic via AWS Lambda Extension. This would eliminate the need for a CloudWatch log subscription + the NR log ingestion Lambda function. This method of log ingestion is lower-cost, and offers faster time to glass.

custom:
  newRelic:
    enableFunctionLogs: true

enableExtensionLogs (optional)

The New Relic Lambda Extension writes diagnostic logs by default. If you'd prefer to mute them, set this to false. (Defaults to true.)

custom:
  newRelic:
    enableExtensionLogs: false

nrTags (optional)

Specify tags to be added to all log events. Optional. Each tag is composed of a colon-delimited key and value. Multiple key-value pairs are semicolon-delimited; for example, env:prod;team:myTeam.

custom:
  newRelic:
    nrTags:'env:prod;team:myTeam'

nrEnvDelimiter (optional)

Some users in UTF-8 environments might face difficulty in defining strings of NR_TAGS delimited by the semicolon ; character. Use NR_ENV_DELIMITER, to set custom delimiter for NR_TAGS.

custom:
  newRelic:
    nrEnvDelimiter:','

logEnabled (optional)

Enables logging when using CloudWatch-based telemetry transport with the newrelic-log-ingestion Lambda function. Defaults to false

enableIntegration (optional)

Allows the creation of New Relic aws cloud integration when absent. Defaults to false. If an integration already exists for your AWS account,you can omit this.

custom:
  newRelic:
    enableIntegration: true

logLevel (optional)

Sets a log level on all functions. Possible values: 'fatal', 'error', 'warn', 'info', 'debug', 'trace' or 'silent'. Defaults to 'error'

You can still override log level on a per function basis by configuring environment variable NEW_RELIC_LOG_LEVEL.

custom:
  newRelic:
    logLevel: debug

Logging configuration is considered in the following order:

  1. function NEW_RELIC_LOG_LEVEL environment
  2. provider NEW_RELIC_LOG_LEVEL environment
  3. custom newRelic logLevel property
  4. custom newRelic debug flag

manualWrapping (optional)

Functions with many dependencies may experience longer cold start times with dynamic wrapping. One possible remediation is to wrap the function manually, and bypass the no-code-change wrapping. If you enable this option, you'll need to require (or, for ESM, import) the New Relic Node Agent, and wrap the body of your handler function. You would still be able to take advantage of the easy installation of the agent via Lambda Layers, and still have telemetry transported to New Relic via the Lambda Extension. We recommend that you include the New Relic Node Agent as a devDependency for local development, and omit it from the dependencies you deploy. Defaults to false.

custom:
  newRelic:
    manualWrapping: true

customRolePolicy (optional)

Specify an alternative IAM role policy ARN for this integration here if you do not want to use the default role policy.

custom:
  newRelic:
    customRolePolicy: your-custom-role-policy-arn

stages (optional)

An array of stages that the plugin will be included for. If this key is not specified then all stages will be included.

custom:
  newRelic:
    stages:
       - prod

include (optional)

An array of functions to include for automatic wrapping. (You can set include or exclude options, but not both.)

custom:
  newRelic:
    include:
      - include-only-func
      - another-included-func

exclude (optional)

An array of functions to exclude from automatic wrapping. (You can set include or exclude options, but not both.)

custom:
  newRelic:
    exclude:
      - excluded-func-1
      - another-excluded-func

layerArn (optional)

Pin to a specific layer version. The latest layer ARN is automatically fetched from the New Relic Layers API

custom:
  newRelic:
    layerArn: arn:aws:lambda:us-east-1:451483290750:layer:NewRelicPython37:2

cloudWatchFilter (optional)

Provide a list of quoted filter terms for the CloudWatch log subscription to the newrelic-log-ingestion Lambda. Combines all terms into an OR filter. Defaults to "NR_LAMBDA_MONITORING" if not set. Use "*" to capture all logs

custom:
  newRelic:
    cloudWatchFilter:
      - "NR_LAMBDA_MONITORING"
      - "trace this"
      - "ERROR"

If you want to collect all logs:

custom:
  newRelic:
    cloudWatchFilter: "*"

Be sure to set the LOGGING_ENABLED environment variable to true in your log ingestion function. See the aws-log-ingestion documentation for details.

prepend (optional)

Whether or not to prepend the New Relic layer. Defaults to false which appends the layer.

custom:
  newRelic:
    prepend: true

logIngestionFunctionName (optional)

Only required if your New Relic log ingestion function name is different from newrelic-log-ingestion.

custom:
  newRelic:
    logIngestionFunctionName: log-ingestion-service

disableAutoSubscription (optional)

Only required if you want to disable auto subscription.

custom:
  newRelic:
    disableAutoSubscription: true

disableLicenseKeySecret (optional)

Only required if you want to disable creating license key in AWS Secrets Manager. Setting this as true would create NEW_RELIC_LICENSE_KEY environment variable for the New Relic Lambda Extension to access.

custom:
  newRelic:
    disableLicenseKeySecret: true

enableDistributedTracing (optional)

Only required if you want to disable distributed tracing.

custom:
  newRelic:
     enableDistributedTracing: false

javaNewRelicHandler (optional)

Java runtimes only. Only required if you are implementing the RequestStreamHandler interface. Defaults to RequestHandler interface.

Accepted inputs:

  • handleRequest
  • handleStreamsRequest
custom:
  newRelic:
    javaNewRelicHandler: handleStreamsRequest

proxy (optional)

This plugin makes various HTTP requests to public APIs in order to retrieve data about the New Relic and cloud provider accounts. If you are behind a proxy when this plugin runs, the HTTP agent needs the proxy information to connect to those APIs. Use the given URL as a proxy for HTTP requests.

custom:
  newRelic:
    proxy: http://yourproxy.com:8080

Supported Runtimes

This plugin currently supports the following AWS runtimes:

  • nodejs16.x
  • nodejs18.x
  • nodejs20.x
  • nodejs22.x
  • python3.7
  • python3.8
  • python3.9
  • python3.10
  • python3.11
  • python3.12
  • python3.13
  • java8.al2
  • java11
  • java17
  • java21
  • provided.al2
  • provided.al2023

Contributing

Testing

  1. Make changes to examples/nodejs/serverless.yml based on what you are planning to test
  2. Generate a test case by executing script generate:test:case
# Example
npm run generate:test:case
  1. Rename generated file tests/fixtures/example.service.input.json to test case e.g. tests/fixtures/log-level.service.input.json
  2. Create expected output file tests/fixtures/example.service.output.json for test case e.g. tests/fixtures/log-level.service.output.json
  3. Run tests
# Example
npm run test

changelog

v5.8.0 (2025-04-23)

Features

  • add sendFunctionLogs & sendExtensionLogs config params (#497) (0556094)
  • added feature to add nrTags and customise nrEnvDelimiter (#494) (c27b89b)
  • adding ruby runtime support and example (#509) (f592cac)

Security improvements

  • deps: bump axios from 1.6.2 to 1.7.7 (#473) (3174ca2)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com
  • deps: bump axios from 1.7.7 to 1.8.4 (#498) (0f4fbe0)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Miscellaneous chores

  • added dotnet8 example (#512) (9742d1d)
  • added engines for package.json (#511) (271e0d9)
  • deps-dev: bump axios from 1.6.2 to 1.8.4 in /examples/java (#500) (52a829d)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • deps-dev: bump axios from 1.6.2 to 1.8.4 in /examples/nodejs (#499) (55ce0ca)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • deps-dev: bump axios from 1.6.2 to 1.8.4 in /examples/python (#508) (8364719)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • deps-dev: bump braces from 3.0.2 to 3.0.3 in /examples/java (#507) (36dd0a9)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • deps-dev: bump braces from 3.0.2 to 3.0.3 in /examples/nodejs (#506) (a5be1a0)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • deps-dev: bump braces from 3.0.2 to 3.0.3 in /examples/python (#475) (ce4ae6c)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com
  • deps-dev: bump ws from 7.5.7 to 7.5.10 in /examples/java (#474) (f3d2404)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com
  • deps-dev: bump ws from 7.5.7 to 7.5.10 in /examples/nodejs (#505) (c87e79b)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • deps: bump axios from 1.6.2 to 1.7.7 in /examples/python-requirements (#472) (23d8e29)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com
  • deps: bump axios from 1.7.7 to 1.8.4 in /examples/python-requirements (#513) (6f3237e)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • update ci-workflow.yml (#504) (00e98c2)
  • updated dependencies version (#514) (9f3c45a)
  • Updated examples with latest versions (#493) (c9cdafc)
  • Updated Serverless version in examples (#510) (fe18340)
  • updated test fixures for the serverless repo with latest layers (#495) (07c2225)
  • updating test-fixtures with latest versions (#501) (2474fe6)

v5.7.0 (2025-01-20)

Miscellaneous chores

  • Fixing handler not updating for Node.js runtime 22 (#489) (0161b3b)

v5.6.0 (2024-12-10)

Features

  • Added support for Python 3.13 runtime (#480) (a64bac5)
  • Adding support to Node js v22 runtime and updating test cases. (#483) (b6fb279)
  • updating code cov version (#481) (632bed9)

Bug fixes

Documentation

Miscellaneous chores

v5.5.0 (2024-11-21)

Features

Security improvements

  • deps: adding support to serverless v4 (#477) (d7048b5)
  • deps: bump braces from 3.0.2 to 3.0.3 (#444) (fa1c5e9)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com
  • deps: bump micromatch from 4.0.5 to 4.0.8 (#464) (8e77ad8)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com
  • deps: bump ws from 7.5.9 to 7.5.10 (#454) (13c2495)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com

Miscellaneous chores

  • deps-dev: bump braces from 3.0.2 to 3.0.3 in /examples/python-requirements (#445) (fe84bdf)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com
  • deps-dev: bump ws from 7.5.7 to 7.5.10 in /examples/python (#453) (4fe712e)
    • Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chodavarapu Naga Viswanadha Avinash aavinash@newrelic.com

v5.4.0 (2024-07-24)

v5.3.0 (2024-06-12)

Features

v5.2.1 (2024-06-12)

Miscellaneous chores

  • removed add-to-board which adds issues/PRs to Node.js agent team github board (#446) (8162697)

Continuous integration

  • Updated create release to pass in build: true (#450) (4fd4ea3)

v5.2.0 (2024-06-11)

Features

Security improvements

Miscellaneous chores

  • ci: Removed redundant publish.yml workflow (#427) (b392bdc)

Tests

  • layer: upgrade Lambda layer version in tests NR-278207 (#442) (1b7a6f7)
  • Updated ARNs to contain latest layer versions (#432) (8414422)

Continuous integration

  • Removed use_new_release input from prepare release workflow (#430) (e339d48)
  • removed changelog.json file (#429) (924c798)

v5.1.0 (2024-03-26)

Bug fixes

  • Added GitHub Actions workflows for validate (lint, test), and publish (#412) (99a396b)

Miscellaneous chores

v5.0.1 (2024-02-13)

Bug fixes

  • Updated check for existing newrelic-log-ingestion script to handle variable suffix.

v5.0.0 (2024-01-19)

⚠ BREAKING CHANGES

  • Dropped support for deployment of Node 14 Lambda functions.

v4.3.0 (2023-12-04)

Features

  • Added support for Lambda functions using Node 20 runtime.

Miscellaneous chores

  • Updated dependencies

v4.2.0 (2023-10-30)

Features

  • Added support for Java 17 layer (thank you to @michjacobs!)

Miscellaneous chores

  • Updated dependencies

v4.1.0 (2023-09-05)

Features

  • Added manualWrapping flag to skip wrapper helper, but still instrument functions with the latest layer-installed agent.

Bug fixes

  • fix: Updated integration to iterate over paginated ListPolicies results

v4.0.0 (2023-08-28)

⚠ BREAKING CHANGES

  • Dropped support for Node 12 and Python 3.6

Features

  • Added support for Python 3.11

Bug fixes

  • Handle when null account values are returned from NR API (thank you, @sethawright !)
  • Fix boolean test for enableExtensionLogs (thank you @nr-swilloughby !)

v3.5.0 (2023-05-31)

Features

  • Added support for Python 3.10

v3.4.3 (2023-01-24)

Miscellaneous chores

  • Updated dependencies

v3.4.0 (2022-12-02)

Features

  • Added support for Node 18. Thank you @Engerim !

v3.3.7 (2022-11-02)

Code refactoring

  • Merge layers instead of overriding them when the serverless.yml has layers defined in provider or global as well as in specific functions. Thank you to @alexmchardy for the PR!

Miscellaneous chores

  • Added codecov to measure test coverage. Thank you to @jmartin4563 !

v3.3.6 (2022-10-27)

Miscellaneous chores

  • Updated dependencies
  • Changed peer dependency versions to use the ^ specifier instead of ~. Thanks to @wrumsby for pointing it out, and @ran-j for submitting a PR to fix.

v3.3.5 (2022-07-14)

Miscellaneous chores

This release updates the ReadMe to emphasize that this plugin should be last in the plugins section of the serverless.yml. Thank you to @sebastianmarines for pinpointing this as a cause of Node 16 functions being unable to find the NR handler.

v3.3.3 (2022-06-22)

Miscellaneous chores

  • Corrected serverless.yml in the Java example

v3.3.2 (2022-06-16)

Miscellaneous chores

  • Set stderr log output for Python agent
  • Updated newrelic-log-ingestion script stack name to comply with the CLI.

v3.3.1 (2022-06-06)

Bug fixes

  • Restored the NEW_RELIC_LOG_ENABLED env var when logEnabled is set in serverless.yml.

v3.3.0 (0222-05-31)

Features

  • Added support for Node 16

v3.2.0 (2022-05-06)

Features

  • Added support for provider layers. (Thank you to @Shereef for the contribution!)

Miscellaneous chores

  • Moved project dependencies to peer dependencies

v3.1.1 (2022-04-13)

Features

  • Added Fallback logging for developers running Serverless 2.x, or running 3.x in environments that don't have local Serverless 3.x.

v3.1.0 (2022-04-06)

Features

  • Added support for enableExtensionLogs boolean

Bug fixes

  • Improved support for logging in v3
  • Handling error state when deploying account is unable to list policies
  • Ensuring that API polling integration is created when enableIntegration is set to true

Miscellaneous chores

  • Dependency updates

v3.0.0 (2022-02-25)

⚠ BREAKING CHANGES

  • Added support for Serverless 3.x.

v2.4.1 (2022-02-22)

Miscellaneous chores

  • Updated dependencies
  • This is the last 2.x.x release.

v.2.4.0 (2022-01-25)

Miscellaneous chores

  • Updated dependencies

v2.2.2 (2022-01-21)

Miscellaneous chores

  • Changed the conditions under which the plugin NOOPs. If the serverless.yml specifies an architecture that doesn't yet have a compatible layer, the plugin skips integration. Similarly, the plugin skips if no API key is specified.

  • Updated dependencies:

    • Removed a dependency on the deprecated request package (thank you to @Engerim !)
    • Updated log4j version references in Java examples.

v2.2.1 (2021-11-30)

Bug fixes

  • Changed how the plugin detects NR-AWS integration. If any integration exists, the plugin skips creating any integration, and so avoids creating a polling integration when there's a current streaming integration. The integration code still requests specific integration names from AWS, but that's a backstop which happens after a request to NerdGraph.

v2.2.0 (2021-11-11)

Features

  • Added support for Lambda ARM64/Graviton2 architecture.

Miscellaneous chores

  • Updated serverless to 2.66, and Jest to 27
  • Removed Node 10 from example serverless.yml

v2.1.4 (2021-09-15)

Miscellaneous chores

  • Updated Serverless to 2.59.0

v2.1.3 (2021-09-15)

Bug fixes

  • Fixed trusted account key handling

Miscellaneous chores

  • Added logging
  • updated test fixtures

v2.1.1 (2021-09-02)

Miscellaneous chores

  • Updated Serverless to 2.57.0
  • Updated CI/CD image to Node 10

v2.1.0 (2021-09-01)

Features

Added support for Python 3.9

⚠ BREAKING CHANGES

Removed support for Node 8

v1.1.8 (2021-07-09)

Features

  • Added 'proxy' option in order to allow this plugin to work behind an HTTP proxy #144 (thanks @CalMlynarczyk)

v1.1.7 (2021-06-09)

Miscellaneous chores

  • Updated dependencies

V1.1.6 (2021-04-29)

Features

  • Added support for java layer

v1.1.5 (2021-03-05)

Features

  • Added disableLicenseKeySecret flag

v1.1.4 (2021-02-18)

Features

  • Added support for Node 14
  • New Relic Distributed Tracing can be enabled in the custom.newRelic block of the serverless.yml by setting enableDistributedTracing to true

v1.1.2 (2021-02-01)

Bug fixes

  • Fix for string accountId values not matching number value returned by integration validation.

v.1.1.1 (2021-01-29)

Bug fixes

  • Corrected constructor in handling fallback to default region. (Thank you, @vishalraghav94!)

v1.1.0 (2021-01-27)

Bug fixes

  • corrected CloudFormation template for automatic creation of the appropriate managed secret in AWS, and corresponding access policy, attached to the function execution role
  • more obvious messaging if the New Relic License Key can't be retrieved from New Relic

Miscellaneous chores

  • updates to the serverless module

v1.0.0 (2021-01-19)

Features

  • Added deployment to non-US regions from US-based NR accounts
  • Added automatic creation and attachment of access policy for authenticating the NR Extension instead of log subscription/ingest (unless the extension is explicitly not enabled)

Miscellaneous chores

  • Updated Serverless and Jest

v0.4.1 (2020-12-17)

Miscellaneous chores

  • Bumped package.json version for release pipeline

v0.4.0 (2020-12-17)

Features

  • Added support for log ingestion via New Relic Lambda Extension.
  • Added option for extension to be disabled via serverless.yml config

Miscellaneous chores

  • Updated dependencies

v0.3.0 (2020-11-13)

Features

  • Added support for the New Relic Lambda Extension (#81)

v0.2.5 (2020-09-23)

Bug fixes

  • Fix to include templates in NPM package (#76)
  • Fix request handling of JSON response (#77)

v0.2.4 (2020-09-22)

Bug fixes

  • Fix undefined error in integration module (#74)

v0.2.3 (2020-09-14)

Bug fixes

  • Fixed missing fetch dependency error (#72)

v0.2.2 (2020-09-11)

Bug fixes

  • Fixed an integration check binding bug (#70)

v0.2.1 (2020-09-11)

Bug fixes

  • Fixed a reference error for getCallerIdentity (#69)

v0.2.0 (2020-09-08)

Features

  • Added installation of the New Relic Lambda integration and log ingestion function (#61)

⚠ BREAKING CHANGES

  • Some functionality now requires the newRelic.apiKey to be set

v0.1.2.0 (2020-08-21)

Code refactoring

  • Moved plugin skipping to constructor (thanks @karopolopoulos) (#60)

v0.1.19 (2020-08-19)

Features

  • Added config option to specify stages for layer deployment (thanks @karopolopoulos) (#56)

v0.1.18 (2020-04-29)

Features

  • Updated the New Relic Layers API to layers.newrelic-external.com, deprecating nr-layers.iopipe.com

v0.1.17 (2020-03-17)

Code refactoring

  • Optimized async HTTP requests the plugin makes during instrumentation (#49)

v0.1.16 (2020-03-04)

Features

  • Added RequestId log filter pattern

v0.1.15 (2020-03-02)

Features

  • Added include configuration for wrapping functions
  • Added tslint-on-commit

Miscellaneous chores

  • Updated ReadMe

v0.1.14 (2020-02-24)

Miscellaneous chores

  • Addressed tslint complaints

v0.1.13 (2020-02-24)

Features

  • Added customizable log level

Miscellaneous chores

  • Added jest test

v0.1.12 (2020-02-07)

Bug fixes

Updated the log filter subscription pattern so that the filter string is only wrapped once, and passes pattern validation.

v0.1.11 (2020-02-05)

Features

  • Updated the log subscription pattern to capture timeouts (#37)

v0.1.10 (2020-01-02)

Features

  • Added warning if competing log subscription filter detected (#33)

v0.1.9 (2019-12-17)

Features

  • Added ability to disable auto subscription
  • Added log ingestion function parameterization

Code refactoring

  • Replaced forEach with for ... of. Thank you to @kamaz !

v0.1.8 (2019-12-11)

Bug fixes

  • Fixed forEach async bug #24 (thanks @kamaz)

v0.1.7 (2019-11-26)

Miscellaneous chores

  • Forced new version to keep package.json in sync with release.
  • Merged pull request #22 from iopipe/issue/20-need-new-tags-for-ci

v0.1.6 (2019-11-26)

Miscellaneous chores

  • Bumped plugin version

v0.1.5 (2019-11-25)

Code refactoring

  • Corrected the plugin name reference in ordering check.

v0.1.4 (2019-11-25)

Features

  • Added python3.8 Runtime Support #16

v0.1.3 (2019-11-19)

Features

  • Added cloudWatchFilter option to customize the CloudWatch Log Filter #11 (thanks @justinrcs)
  • Added support for the nodejs12.x runtime #12

v0.1.2 (2019-11-5)

Miscellaneous chores

  • Bumped version to pass CircleCI builds

v0.1.1 (2019-11-05)

Miscellaneous chores

Fixed typo

v0.1.0 (2019-11-01)

Bug fixes

  • Fix Circle CI config typo