-
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
Bug: sendDistributionMetricWithDate custom date doesn't have any effect in DataDog #67
Comments
Hi @PatrykMilewski, thanks for the detailed report. I'm able to reproduce and I've found the bug in the layer that's causing this. I'm working on a fix now and I'll update you here when I'm able to merge it. |
@sfirrin Thank you! |
I see, that a patch is merged. I will update my lambdas today and let you guys know, if it's fixed. |
👍 sounds good |
@PatrykMilewski did you get a chance to test out the fix? |
I'm closing this issue and assuming the problem has been fixed. Feel free to reopen if that's not the case. |
@tianchu I'm sorry that I didn't responded, but we started using another library for metrics ingestion into DataDog and I didn't really had a chance to check if this bug is fixed for me. |
@PatrykMilewski are you using a third-party library for submitting custom metrics from Lambda functions? Asking because we've researched most of these and they rely on a deprecated feature for submitting metrics: https://docs.datadoghq.com/integrations/amazon_lambda/?tab=awsconsole#deprecated-using-cloudwatch-logs |
@pinkerton I'm using this one: I really appreciate what you do guys with this library, but I think it's not supposed to be used with our use case. We use Lambdas to integrate services, that doesn't have built-in integration with DataDog. So basically what we do is reading metrics in Lambda and then instantly ingesting it into DataDog. We are not interested about monitoring the Lambda by itself (but in the future we plan to monitor the monitors, so maybe I will get back to it 😄). I believe it's a right move, since I'm going to request for stuff, that shouldn't be really in this library, since it's designed for monitoring the Lambda, not just use Lambda as a proxy between 3rd party services and DataDog. |
Expected Behavior
When I send data point using
sendDistributionMetricWithDate
function, I want to see in DataDog data point with matching timestamp.Actual Behavior
When I send data point using
sendDistributionMetricWithDate
function, DataDog ignores date provided and displays data point with the ingestion time.Steps to Reproduce the Problem
Specifications
More details
I observed the same behaviour for setting 30 minutes in the past and 10 minutes into the future. All of the data points were displayed in DataDog with ingestion date instead of specified date.
Logs and screenshots
Log from Lambda in debug mode:
Timestamp is in UTC:
Parsed JSON:
I was looking as far as 15 months into the past but couldn't find any data points.
I believe something is wrong with the API, since the request according to the logs looks completely fine.
The text was updated successfully, but these errors were encountered: