Skip to content

Commit 3ad6d5f

Browse files
committed
clarify custom unit
1 parent ed7fa9f commit 3ad6d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

develop-docs/sdk/telemetry/scopes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Attributes are key-value pairs where each value is either a an attribute value o
6363
- `value`: The actual attribute value, which MUST match the specified type
6464
- `unit` (optional): The unit of measurement (e.g., `"millisecond"`, `"second"`, `"byte"`, `"ration"`).
6565
- SDKs MAY delay adding support for units for the moment, but MUST be able to do so at a later date without a breaking change.
66-
- SDKS MUST allow users to set all units supported by Relay's [`MetricUnit` enum](https://getsentry.github.io/relay/relay_metrics/enum.MetricUnit.html) but MUST NOT allow custom units [(`CustomUnit`)](https://getsentry.github.io/relay/relay_metrics/struct.CustomUnit.html) or "none" units (`''` or `'none'`).
66+
- SDKS MUST allow users to set all units supported by Relay's [`MetricUnit` enum](https://getsentry.github.io/relay/relay_metrics/enum.MetricUnit.html) but MUST NOT allow custom units (i.e. arbitrary strings, defined in [`CustomUnit`](https://getsentry.github.io/relay/relay_metrics/struct.CustomUnit.html)) or "none" units (`''` or `'none'`).
6767
- `type` (optional): The type of the attribute. SDKs SHOULD NOT expose this to users if they can reliably infer the type from the value. If not, SDKs MAY allow or require users to set the `type` explicitly.
6868

6969
#### Example Usage

0 commit comments

Comments
 (0)