From 853f39f7b378bad29b3e7ca215193ed0ef04e849 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 15 Feb 2024 13:14:28 +1300 Subject: [PATCH] Update metrics.mdx Adding details on metric unit name restrictions in statsd (see https://github.com/getsentry/sentry-dotnet/issues/3132 for more detail). --- src/docs/sdk/metrics.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/docs/sdk/metrics.mdx b/src/docs/sdk/metrics.mdx index b5b4954454..4cc9306ba7 100644 --- a/src/docs/sdk/metrics.mdx +++ b/src/docs/sdk/metrics.mdx @@ -69,6 +69,9 @@ SDKs should permit any string unit, but some of them are known to the system and will in the future permit recalculations. They are documented as part of relay: [`MetricUnit`](https://getsentry.github.io/relay/relay_metrics/enum.MetricUnit.html). +When transmitting custom metric units to Sentry, the unit names should be sanitized, +as statsd only allows the characters `a-z A-Z 0-9 _ .` in metric unit names. + ## Trace Seeking When a metric is emitted it needs to find the current trace (trace seeking),