Skip to content

Commit da5839a

Browse files
vigliaolksdr
authored andcommitted
feat(profiling): Add new measurement units for profiling (#1732)
1 parent ce1a4c4 commit da5839a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- 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))
1414
- Support transaction naming rules. ([#1695](https://github.com/getsentry/relay/pull/1695))
1515
- Add PII scrubbing to URLs captured by replay recordings ([#1730](https://github.com/getsentry/relay/pull/1730))
16+
- Add more measurement units for profiling. ([#1732](https://github.com/getsentry/relay/pull/1732))
1617

1718
## 22.12.0
1819

relay-profiling/src/measurements.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ pub struct MeasurementValue {
2020
}
2121

2222
#[derive(Clone, Debug, Serialize, Deserialize)]
23-
#[serde(rename_all = "lowercase")]
23+
#[serde(rename_all = "snake_case")]
2424
pub enum MeasurementUnit {
2525
#[serde(alias = "ns")]
2626
Nanosecond,
2727
#[serde(alias = "hz")]
2828
Hertz,
29+
Byte,
30+
Percent,
2931
}
3032

3133
#[cfg(test)]

0 commit comments

Comments
 (0)