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 proto/sentry_protos/snuba/v1/request_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ enum TraceItemType {
TRACE_ITEM_TYPE_REPLAY = 6;
TRACE_ITEM_TYPE_OCCURRENCE = 7;
TRACE_ITEM_TYPE_METRIC = 8;
TRACE_ITEM_TYPE_PROFILE_FUNCTION = 9;
}

message TraceItemFilterWithType {
Expand Down
3 changes: 3 additions & 0 deletions rust/src/sentry_protos.snuba.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ pub enum TraceItemType {
Replay = 6,
Occurrence = 7,
Metric = 8,
ProfileFunction = 9,
}
impl TraceItemType {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -758,6 +759,7 @@ impl TraceItemType {
TraceItemType::Replay => "TRACE_ITEM_TYPE_REPLAY",
TraceItemType::Occurrence => "TRACE_ITEM_TYPE_OCCURRENCE",
TraceItemType::Metric => "TRACE_ITEM_TYPE_METRIC",
TraceItemType::ProfileFunction => "TRACE_ITEM_TYPE_PROFILE_FUNCTION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -772,6 +774,7 @@ impl TraceItemType {
"TRACE_ITEM_TYPE_REPLAY" => Some(Self::Replay),
"TRACE_ITEM_TYPE_OCCURRENCE" => Some(Self::Occurrence),
"TRACE_ITEM_TYPE_METRIC" => Some(Self::Metric),
"TRACE_ITEM_TYPE_PROFILE_FUNCTION" => Some(Self::ProfileFunction),
_ => None,
}
}
Expand Down
Loading