datadog-go icon indicating copy to clipboard operation
datadog-go copied to clipboard

Special characters used in the dogstatsd protocol are not escaped

Open deadok22 opened this issue 2 years ago • 0 comments

The dogstatsd protocol's special characters occurring in metric names and tags are not escaped.

The following characters in tag keys and values should be replaced: |, ,, #, \n. The following characters in metric names should be replaced: |, :, \n.

The java-dogstatsd-client library has the same issue: https://github.com/DataDog/java-dogstatsd-client/issues/199

Some parts of this issue were reported in https://github.com/DataDog/datadog-go/issues/83 and https://github.com/DataDog/datadog-go/issues/211, too.

deadok22 avatar Oct 24 '22 07:10 deadok22