You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially we'd like to use set the handler to node_modules/datadog-lambda-js/dist/handler.handler and then set the default-handler to the environment variable DD_LAMBDA_HANDLER like in the documentation in order to hook into the function.
Is it possible to add / does there already exist a way to set a custom handler via the Serverless component?
We are trying to setup https://docs.datadoghq.com/serverless/installation/nodejs/?tab=custom for our metrics and not being able to set a handler is preventing us from tracing our functions.
Essentially we'd like to use set the handler to
node_modules/datadog-lambda-js/dist/handler.handler
and then set thedefault-handler
to the environment variableDD_LAMBDA_HANDLER
like in the documentation in order to hook into the function.Another example would be setting up Sentry: https://docs.sentry.io/platforms/node/guides/aws-lambda/ It seems like it would be impossible to use any 3rd party tools without something like this.
EDIT: Having looked at the code now, I am just curious if we could override https://github.com/serverless-nextjs/serverless-next.js/blob/master/packages/serverless-components/nextjs-component/src/component.ts#L373 via
inputs
?The text was updated successfully, but these errors were encountered: