newrelic / serverless-newrelic-lambda-layers

A Serverless plugin to install New Relic's AWS Lambda layers without requiring a code change.
Apache License 2.0
55 stars 48 forks source link

Lambda function as a Docker Image? #270

Open juanmarin96 opened 2 years ago

juanmarin96 commented 2 years ago

Does the plugin work with lambda functions deployed as a Docker Image?

mrickard commented 2 years ago

We haven't tested the plugin with Lambda functions deployed as Docker images, and I'd suspect that it'd throw errors.

On the other hand, customers have installed our agent/extension layers (https://layers.newrelic-external.com/) into Lambdas deployed as Docker images, following the procedure outlined by AWS here: https://docs.aws.amazon.com/lambda/latest/dg/images-create.html. You'd want to be careful to set the handler value and environment variables correctly.

cabal-daniel commented 2 years ago

Yeah this project doesn't work with images. Which is unfortunate as only images are able to support 10G size on AWS. I hope it gets planned soon.

workato-integration[bot] commented 1 year ago

https://issues.newrelic.com/browse/NR-142161

chistyakov commented 12 months ago

I'd like to propose the addition of Docker images pre-integrated with NewRelic's Lambda layer. At present, our team finds itself consistently building and hosting our own Docker images whenever there's a new version of the Lambda layer. This process can be quite cumbersome.

I've observed that NewRelic's competitor, Sentry, offers this convenience for their users. Here's a reference to how they've implemented it: Sentry AWS Lambda Container Image Documentation.

Providing such a feature would greatly streamline our deployment process and enhance user experience. I believe other users would benefit from this addition as well.

Thank you for considering this enhancement!

chaudharysaket commented 1 month ago

We have released support for containerized lambda. Please find the New Relic docs. You can find the ECR images here. Thank you!

chistyakov commented 4 weeks ago

thank you!

chistyakov commented 4 weeks ago

Is it possible to add the newrelic-agent version to the docker-image tag?

I want to freeze the image version to prevent unexpected updates.