Comments (6)
We have another similar report to this. It's a very difficult issue for us to reproduce, but we want to get to the bottom of it. We are having a hard time getting to the root cause with the information we have at the moment.
from newrelic-lambda-extension.
@xuetaofeng how frequently does this happen, and how frequently does your lambda function invoke? We believe this is some kind of race condition in high frequency lambda functions.
from newrelic-lambda-extension.
@xuetaofeng Are you setting the handler correctly? If not, this will cause a timeout. What is your handler set to? The handler must be set to newrelic-lambda-wrapper.handler
which is a wrapped handler that is built into the .Net layer. https://docs.newrelic.com/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/instrument-your-own/
from newrelic-lambda-extension.
@iamemilio Running into this too but can't set the handler due to using ES Modules and following the guidelines here: https://github.com/newrelic/newrelic-lambda-layers/blob/993944fd0c8b6e6592672689f22aa744bffa752c/README.md#support-for-es-modules-nodejs
Any advice?
On deploying your function, don't set the function handler to our Node wrapper; instead, use your regular handler function, which you've wrapped with newrelic.setLambdaHandler().
from newrelic-lambda-extension.
@xuetaofeng are you using the pg
postgres library? or MiddyJS?
from newrelic-lambda-extension.
Running into the same issue with Node14.x and pg + MiddyJS setup. Is there an example on how to handle lambda code with pg and middy library?
from newrelic-lambda-extension.
Related Issues (20)
- Duplicates Logs HOT 7
- fatal error: concurrent map read and map write HOT 1
- Event API support?
- `make dist` *** No rule to make target `dist'
- ARM64 Extension has intermittent delay (10 seconds+) after registering for logs
- PHP Support HOT 6
- NEW_RELIC_EXTENSION_SEND_FUNCTION_LOGS requires lower-case 'true', but is documented with 'TRUE' HOT 1
- 403 Forbidden error HOT 16
- Node Handler check, is not handling mjs file extension HOT 1
- Lambda container support
- `NewRelicNodeJS14X:91` and higher is broken
- Using deprecated agent API in python example HOT 1
- execution fails when using integration with sam local invoke HOT 1
- Dotnet core 6 support for lambda
- Duplicates Logs HOT 3
- send on closed channel panic at logserver/logserver.go:185 HOT 5
- New Relic Extension shutting down HOT 2
- trace.id Log Property is Always Empty String
- Add additional parameters to logs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newrelic-lambda-extension.