Closed aaleksandrov closed 5 months ago
Hey @aaleksandrov, thanks for this note. We can definitely enable compression, metrics should compress well.
For anyone who may find this ticket and want to work on it, I believe we'd simply need to gzip the payload and set the Content-Encoding: deflate
header, as per this pr.
Thanks!
@astuyve Could you check the related PR please? https://github.com/DataDog/datadog-lambda-js/pull/492
Expected Behavior
We send metrics from lambda to Datadog using
sendDistributionMetricWithDate
(it could be 10k metrics within one invocation). We expect to see metrics on DatadogActual Behavior
We receive 413 message | datadog:failed attempt to send metrics to Datadog. HTTP error code: 413
I see a similar issue was raised for the python library and it was fixed by implementing compression. is it possible to do the same?
Steps to Reproduce the Problem
Send too many metrics
Specifications
Stacktrace