Skip to content

datadog: handler not initialized #515

@naveen700

Description

@naveen700

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

  1. Using dd-trace and initializing it using init() method
  2. Then wrapping the handler in trace.
  3. And using method sendDistributionMetric to send the metric.

Specifications

  • Datadog Lambda Layer version: 7.96.0
  • dd trace: 5.6.0
  • Node version: Node 18.x

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
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions