dd-trace-js
dd-trace-js copied to clipboard
dd-trace dogstatsd implementation differs from published documentation
If you go to the docs: https://docs.datadoghq.com/metrics/custom_metrics/dogstatsd_metrics_submission/?code-lang=nodejs you will see that the functions take a sample rate. But the dd-trace dogstatsd implementation doesn't seem to have any reference to sample rate. This is particularly evident in the gauge function that should take value and sample rate but only takes a value: https://github.com/DataDog/dd-trace-js/blob/604b6ea4bee2e7e8bda99be122d8964188a04394/packages/dd-trace/src/dogstatsd.js#L42