8000 sendDistributionMetricWithDate permission issue · Issue #577 · DataDog/datadog-lambda-js · GitHub
[go: up one dir, main page]

Skip to content
sendDistributionMetricWithDate permission issue #577
Closed
@lclemence

Description

@lclemence

Expected Behavior

when using sendDistributionMetricWithDate with a valid date and extension is running. It should send the metric.

sendDistributionMetricWithDate(
            'aws.cognito.custom.EstimatedNumberOfUsers',
            nbUsers || 0,
            new Date()
        );

Actual Behavior

I am having a permission issue while my api key secret arn is well setup.

In my case, I could just replace by sendDistributionMetric to make it work. Apparently it passes an invalid date to sendDistributionMetricWithDate to pass through this code

this.statsDClient?.distribution(name, value, undefined, tags);

When the date is valid it does a direct call to the api and I get a permission issue.

Steps to Reproduce the Problem

1.sending metric with sendDistributionMetricWithDate and a valid date

Specifications

  • Datadog Lambda Layer version: Datadog-Extension-ARM:65
  • Datadog-lambda-js: 9.115
  • Node version: 20

Stacktrace

Permission issue
Screenshot 2024-09-24 at 9 09 46 AM

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0