-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datadog: handler not initialized #515
Comments
Hi @naveen700 - thanks for reaching out! You shouldn't need to manually initialize DDtrace at all, this library handles that here. You also shouldn't need to manually wrap your handler, but without seeing that code it's hard to for me to help more. This error (like the linked issue) is occurring because We'll work towards buffering these metrics so this error doesn't occur, but if you're still having trouble I'd ask that you file a support ticket so that we can see your configuration and handler code and offer specific advice. You can attach this ticket to speed up the process. Support can be reached at Thanks! |
Hi @astuyve, Thanks for your prompt reply, we are able to solve this problem, with using node 20.x and while using datadog20 layer in lambda, we had issue with node 18 it was not able to create the lambda layer automatically with datadog. And another issue was that in the package.json of shared layer, it was suggested that not to put the dd-trace and datadog-lambda-js library and afiter removing it from package.json it solved the problem. |
Okay, thanks for confirming! I'll close this issue for now, feel free to re-open or follow up with any other issues! |
Expected Behavior
Metric should have been sent to datadog in lambda instead getting error of handler not initialized.
#369
Actual Behavior
I am using sendDistributionMetric but while checking the lambda logs I am getting an error as datadog: handler not initialized.
Steps to Reproduce the Problem
Specifications
Stacktrace
2024-03-18T05:10:34.021Z 79214b2e-b340-469e-ac86-ec73b4e0ee51 ERROR [dd.trace_id=5898828417058474788 dd.span_id=1717120647592796076]

{
"status": "error",
"message": "datadog:handler not initialized"
}
@astuyve I have seen your comment and added the logs as sent and send metric as you mentioned in ticket #369
The text was updated successfully, but these errors were encountered: