Skip to content

Commit 386b40c

Browse files
committed
1 parent 4d72142 commit 386b40c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

relay-conventions/src/consts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

relay-event-normalization/src/eap/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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.
4747
pub 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 {

0 commit comments

Comments
 (0)