Skip to content

Commit 86f3522

Browse files
committed
feat(profiling): Add ui chunk profiling data category
1 parent 7b05a89 commit 86f3522

File tree

5 files changed

+33
-2
lines changed

5 files changed

+33
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
**Internal**:
6+
7+
- Add ui chunk profiling data category. ([#4532](https://github.com/getsentry/relay/pull/4532))
8+
9+
310
## 25.3.0
411

512
**Features**:

py/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

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

89
## 0.9.6
910

py/sentry_relay/consts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class DataCategory(IntEnum):
3535
LOG_ITEM = 23
3636
LOG_BYTE = 24
3737
PROFILE_DURATION_UI = 25
38+
PROFILE_CHUNK_UI = 26
3839
UNKNOWN = -1
3940
# end generated
4041

relay-base-schema/src/data_category.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,20 @@ pub enum DataCategory {
101101
///
102102
/// This is the category for logs for which we store log event total bytes for users.
103103
LogByte = 24,
104-
/// ProfileDurationUi
104+
/// Profile duration of a UI profile.
105105
///
106106
/// This data category is used to count the number of milliseconds per indexed UI profile
107107
/// chunk.
108+
///
109+
/// See also: [`Self::ProfileDuration`]
108110
ProfileDurationUi = 25,
111+
/// UI Profile Chunk.
112+
///
113+
/// This data category is used to count the number of milliseconds per indexed UI profile
114+
/// chunk.
115+
///
116+
/// See also: [`Self::ProfileChunk`]
117+
ProfileChunkUi = 26,
109118

110119
//
111120
// IMPORTANT: After adding a new entry to DataCategory, go to the `relay-cabi` subfolder and run
@@ -145,6 +154,7 @@ impl DataCategory {
145154
"profile_duration" => Self::ProfileDuration,
146155
"profile_duration_ui" => Self::ProfileDurationUi,
147156
"profile_chunk" => Self::ProfileChunk,
157+
"profile_chunk_ui" => Self::ProfileChunkUi,
148158
"metric_second" => Self::MetricSecond,
149159
"replay_video" => Self::DoNotUseReplayVideo,
150160
"uptime" => Self::Uptime,
@@ -180,6 +190,7 @@ impl DataCategory {
180190
Self::ProfileDuration => "profile_duration",
181191
Self::ProfileDurationUi => "profile_duration_ui",
182192
Self::ProfileChunk => "profile_chunk",
193+
Self::ProfileChunkUi => "profile_chunk_ui",
183194
Self::MetricSecond => "metric_second",
184195
Self::Uptime => "uptime",
185196
Self::AttachmentItem => "attachment_item",

relay-cabi/include/relay.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,23 @@ enum RelayDataCategory {
156156
*/
157157
RELAY_DATA_CATEGORY_LOG_BYTE = 24,
158158
/**
159-
* ProfileDurationUi
159+
* Profile duration of a UI profile.
160160
*
161161
* This data category is used to count the number of milliseconds per indexed UI profile
162162
* chunk.
163+
*
164+
* See also: [`Self::ProfileDuration`]
163165
*/
164166
RELAY_DATA_CATEGORY_PROFILE_DURATION_UI = 25,
167+
/**
168+
* UI Profile Chunk.
169+
*
170+
* This data category is used to count the number of milliseconds per indexed UI profile
171+
* chunk.
172+
*
173+
* See also: [`Self::ProfileChunk`]
174+
*/
175+
RELAY_DATA_CATEGORY_PROFILE_CHUNK_UI = 26,
165176
/**
166177
* Any other data category not known by this Relay.
167178
*/

0 commit comments

Comments
 (0)