File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
relay-event-normalization/src/eap Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ convention_attributes!(
6767 SEGMENT_ID => "sentry.segment.id" ,
6868 SEGMENT_NAME => "sentry.segment.name" ,
6969 SENTRY_ACTION => "sentry.action" ,
70+ SENTRY_CATEGORY => "sentry.category" ,
7071 SENTRY_DOMAIN => "sentry.domain" ,
7172 SENTRY_GROUP => "sentry.group" ,
7273 SENTRY_NORMALIZED_DESCRIPTION => "sentry.normalized_description" ,
Original file line number Diff line number Diff line change @@ -45,10 +45,6 @@ pub fn normalize_sentry_op(attributes: &mut Annotated<Attributes>) {
4545/// already set. The category is derived from the span operation or other span
4646/// attributes.
4747pub fn normalize_span_category ( attributes : & mut Annotated < Attributes > ) {
48- // TODO(mjq): Define these constants in sentry-conventions.
49- const SENTRY_CATEGORY : & str = "sentry.category" ;
50- const AUTO_UI_BROWSER_METRICS : & str = "auto.ui.browser.metrics" ;
51-
5248 // Clients can explicitly set the category.
5349 if attributes
5450 . value ( )
@@ -92,7 +88,7 @@ pub fn normalize_span_category(attributes: &mut Annotated<Attributes>) {
9288 } else if attributes_val
9389 . get_value ( ORIGIN )
9490 . and_then ( |v| v. as_str ( ) )
95- . is_some_and ( |v| v == AUTO_UI_BROWSER_METRICS )
91+ . is_some_and ( |v| v == "auto.ui.browser.metrics" )
9692 {
9793 Some ( "browser" )
9894 } else {
You can’t perform that action at this time.
0 commit comments