Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

**Internal**:

- Add ui chunk profiling data category. ([#4593](https://github.com/getsentry/relay/pull/4593))
- Switch global rate limiter to a service. ([#4581](https://github.com/getsentry/relay/pull/4581))

## 25.3.0
Expand Down
1 change: 1 addition & 0 deletions py/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Remove unused capability to block metric names and tags. ([#4536](https://github.com/getsentry/relay/pull/4536))
- Deprecate ReplayVideo data category ([#4560](https://github.com/getsentry/relay/pull/4560))
- Add ui chunk profiling data category. ([#4593](https://github.com/getsentry/relay/pull/4593))

## 0.9.6

Expand Down
1 change: 1 addition & 0 deletions py/sentry_relay/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class DataCategory(IntEnum):
LOG_ITEM = 23
LOG_BYTE = 24
PROFILE_DURATION_UI = 25
PROFILE_CHUNK_UI = 26
UNKNOWN = -1
# end generated

Expand Down
13 changes: 12 additions & 1 deletion relay-base-schema/src/data_category.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,20 @@ pub enum DataCategory {
///
/// This is the category for logs for which we store log event total bytes for users.
LogByte = 24,
/// ProfileDurationUi
/// Profile duration of a UI profile.
///
/// This data category is used to count the number of milliseconds per indexed UI profile
/// chunk.
///
/// See also: [`Self::ProfileDuration`]
ProfileDurationUi = 25,
/// UI Profile Chunk.
///
/// This data category is used to count the number of milliseconds per indexed UI profile
/// chunk.
///
/// See also: [`Self::ProfileChunk`]
ProfileChunkUi = 26,

//
// IMPORTANT: After adding a new entry to DataCategory, go to the `relay-cabi` subfolder and run
Expand Down Expand Up @@ -145,6 +154,7 @@ impl DataCategory {
"profile_duration" => Self::ProfileDuration,
"profile_duration_ui" => Self::ProfileDurationUi,
"profile_chunk" => Self::ProfileChunk,
"profile_chunk_ui" => Self::ProfileChunkUi,
"metric_second" => Self::MetricSecond,
"replay_video" => Self::DoNotUseReplayVideo,
"uptime" => Self::Uptime,
Expand Down Expand Up @@ -180,6 +190,7 @@ impl DataCategory {
Self::ProfileDuration => "profile_duration",
Self::ProfileDurationUi => "profile_duration_ui",
Self::ProfileChunk => "profile_chunk",
Self::ProfileChunkUi => "profile_chunk_ui",
Self::MetricSecond => "metric_second",
Self::Uptime => "uptime",
Self::AttachmentItem => "attachment_item",
Expand Down
13 changes: 12 additions & 1 deletion relay-cabi/include/relay.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,23 @@ enum RelayDataCategory {
*/
RELAY_DATA_CATEGORY_LOG_BYTE = 24,
/**
* ProfileDurationUi
* Profile duration of a UI profile.
*
* This data category is used to count the number of milliseconds per indexed UI profile
* chunk.
*
* See also: [`Self::ProfileDuration`]
*/
RELAY_DATA_CATEGORY_PROFILE_DURATION_UI = 25,
/**
* UI Profile Chunk.
*
* This data category is used to count the number of milliseconds per indexed UI profile
* chunk.
*
* See also: [`Self::ProfileChunk`]
*/
RELAY_DATA_CATEGORY_PROFILE_CHUNK_UI = 26,
/**
* Any other data category not known by this Relay.
*/
Expand Down
1 change: 1 addition & 0 deletions relay-quotas/src/quota.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ impl CategoryUnit {
| DataCategory::MetricBucket
| DataCategory::UserReportV2
| DataCategory::ProfileChunk
| DataCategory::ProfileChunkUi
| DataCategory::Uptime
| DataCategory::MetricSecond
| DataCategory::AttachmentItem
Expand Down