Skip to content
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

sendDistributionMetricWithDate permission issue #577

Open
lclemence opened this issue Sep 25, 2024 · 0 comments
Open

sendDistributionMetricWithDate permission issue #577

lclemence opened this issue Sep 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lclemence
Copy link

lclemence commented Sep 25, 2024

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

@duncanista duncanista added the bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants