Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Added details on statsd metric unit name restrictions #1160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/docs/sdk/metrics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down