Open
Description
Tags are a slice of strings in the documentation, but datadog-go documentation does not mention valid values for tags. datadog-go
removes newlines from tags, but does not remove/escape other invalid characters like comma (,
). Comma in tag value will be interpreted as multiple tags since tags are comma-separated in the UDP datagrams.
The page at https://docs.datadoghq.com/developers/guide/what-best-practices-are-recommended-for-naming-metrics-and-tags/ lists recommeded practice for naming tags, perhaps datadog-go should provide a function to sanitize the tag values according to those rules?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment