-
Notifications
You must be signed in to change notification settings - Fork 36
Allow set custom timestamp for metric datapoint #58
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
Comments
👋 Hi, I've added this to a list of feature requests. Custom timestamps in this library make sense. We already allow them in Ruby, Python, and Go. |
@agocs Could you specify the header of the function, that would have this feature? I'm not sure how you are planning your API for this package, but if you guys would give me some hints, then I could implement it myself and create PR. |
Hey @PatrykMilewski , I definitely appreciate the offer. I think the new function would take the signature
It would, unfortunately, require refactoring |
These changes to MetricListener in listener.ts along with new function sendDistributionMetricWithDate in index.ts should work, right? |
@agocs Could you please expedite PR? We are currently using in datadog in production and using the datadog metrics from cloudwatch logs (that were published from the segment) that are in forming like MONITORING|..|..|..|.. but there is significant delay in getting metrics in datadog. This is the current ticket with the datadog team https://help.datadoghq.com/hc/en-us/requests/322610?flash_digest=9f923b6f7becc24b49af9543c88c5faa51c3a52c. Thanks. |
Hey @vishnuvisnu, thanks for the PR. I can review this for you. |
I'm closing it since PR #63 is already merged into master. Thank you @vishnuvisnu |
Expected Behavior
When I'm sending datapoint with
sendDistributionMetric
function, I would like to specify my custom timestamp.Actual Behavior
Right now it automatically uses the actual time for timestamp generation.
Specifications
The text was updated successfully, but these errors were encountered: