Skip to content

Commit 8e73e8c

Browse files
authored
fix(app-start): Move app_start_type to exclusive_time (#3049)
This tag was added to the wrong metric, exclusive_time_light. Move it to the correct metric for querying. #skip-changelog
1 parent 74d6d20 commit 8e73e8c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

relay-dynamic-config/src/defaults.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ fn span_metrics() -> impl IntoIterator<Item = MetricSpec> {
181181
Tag::with_key("span.main_thread")
182182
.from_field("span.sentry_tags.main_thread")
183183
.when(is_mobile.clone()),
184+
Tag::with_key("app_start_type")
185+
.from_field("span.sentry_tags.app_start_type")
186+
.when(is_mobile.clone()),
184187
// Resource module:
185188
Tag::with_key("file_extension")
186189
.from_field("span.sentry_tags.file_extension")
@@ -230,9 +233,6 @@ fn span_metrics() -> impl IntoIterator<Item = MetricSpec> {
230233
Tag::with_key("release")
231234
.from_field("span.sentry_tags.release")
232235
.when(is_mobile.clone()),
233-
Tag::with_key("app_start_type")
234-
.from_field("span.sentry_tags.app_start_type")
235-
.when(is_mobile.clone()),
236236
// Resource module:
237237
Tag::with_key("file_extension")
238238
.from_field("span.sentry_tags.file_extension")

relay-server/src/metrics_extraction/snapshots/relay_server__metrics_extraction__event__tests__extract_span_metrics_mobile.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
310310
],
311311
),
312312
tags: {
313+
"app_start_type": "warm",
313314
"device.class": "1",
314315
"os.name": "iOS",
315316
"release": "1.2.3",
@@ -330,7 +331,6 @@ expression: "(&event.value().unwrap().spans, metrics)"
330331
],
331332
),
332333
tags: {
333-
"app_start_type": "warm",
334334
"device.class": "1",
335335
"os.name": "iOS",
336336
"release": "1.2.3",
@@ -372,6 +372,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
372372
],
373373
),
374374
tags: {
375+
"app_start_type": "warm",
375376
"device.class": "1",
376377
"os.name": "iOS",
377378
"release": "1.2.3",
@@ -391,7 +392,6 @@ expression: "(&event.value().unwrap().spans, metrics)"
391392
],
392393
),
393394
tags: {
394-
"app_start_type": "warm",
395395
"device.class": "1",
396396
"os.name": "iOS",
397397
"release": "1.2.3",
@@ -431,6 +431,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
431431
],
432432
),
433433
tags: {
434+
"app_start_type": "warm",
434435
"device.class": "1",
435436
"os.name": "iOS",
436437
"release": "1.2.3",
@@ -453,7 +454,6 @@ expression: "(&event.value().unwrap().spans, metrics)"
453454
],
454455
),
455456
tags: {
456-
"app_start_type": "warm",
457457
"device.class": "1",
458458
"os.name": "iOS",
459459
"release": "1.2.3",
@@ -539,6 +539,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
539539
],
540540
),
541541
tags: {
542+
"app_start_type": "warm",
542543
"device.class": "1",
543544
"os.name": "iOS",
544545
"release": "1.2.3",
@@ -560,7 +561,6 @@ expression: "(&event.value().unwrap().spans, metrics)"
560561
],
561562
),
562563
tags: {
563-
"app_start_type": "warm",
564564
"device.class": "1",
565565
"os.name": "iOS",
566566
"release": "1.2.3",
@@ -602,6 +602,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
602602
],
603603
),
604604
tags: {
605+
"app_start_type": "warm",
605606
"device.class": "1",
606607
"os.name": "iOS",
607608
"release": "1.2.3",
@@ -623,7 +624,6 @@ expression: "(&event.value().unwrap().spans, metrics)"
623624
],
624625
),
625626
tags: {
626-
"app_start_type": "warm",
627627
"device.class": "1",
628628
"os.name": "iOS",
629629
"release": "1.2.3",
@@ -665,6 +665,7 @@ expression: "(&event.value().unwrap().spans, metrics)"
665665
],
666666
),
667667
tags: {
668+
"app_start_type": "cold",
668669
"device.class": "1",
669670
"os.name": "iOS",
670671
"release": "1.2.3",
@@ -686,7 +687,6 @@ expression: "(&event.value().unwrap().spans, metrics)"
686687
],
687688
),
688689
tags: {
689-
"app_start_type": "cold",
690690
"device.class": "1",
691691
"os.name": "iOS",
692692
"release": "1.2.3",

0 commit comments

Comments
 (0)