diff --git a/CHANGELOG.md b/CHANGELOG.md index 997e1e794ab..3cb38adab01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Use the main Sentry SDK to submit crash reports instead of a custom curl-based backend. This removes a dependency on `libcurl` and ensures compliance with latest TLS standards for crash uploads. Note that this only affects Relay if the hidden `_crash_db` option is used. ([#1707](https://github.com/getsentry/relay/pull/1707)) - Support transaction naming rules. ([#1695](https://github.com/getsentry/relay/pull/1695)) - Add PII scrubbing to URLs captured by replay recordings ([#1730](https://github.com/getsentry/relay/pull/1730)) +- Add more measurement units for profiling. ([#1732](https://github.com/getsentry/relay/pull/1732)) ## 22.12.0 diff --git a/relay-profiling/src/measurements.rs b/relay-profiling/src/measurements.rs index 3a2d3905bbd..f496332f7ac 100644 --- a/relay-profiling/src/measurements.rs +++ b/relay-profiling/src/measurements.rs @@ -20,12 +20,14 @@ pub struct MeasurementValue { } #[derive(Clone, Debug, Serialize, Deserialize)] -#[serde(rename_all = "lowercase")] +#[serde(rename_all = "snake_case")] pub enum MeasurementUnit { #[serde(alias = "ns")] Nanosecond, #[serde(alias = "hz")] Hertz, + Byte, + Percent, } #[cfg(test)]