-
Notifications
You must be signed in to change notification settings - Fork 118
fix(eap): Use correct attribute names in normalize_mobile_attributes
#6065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1423,8 +1423,8 @@ fn normalize_mobile_measurements(measurements: &mut Measurements) { | |
| } | ||
|
|
||
| const APP_START_SOURCES: [(&str, Option<&str>); 5] = [ | ||
| ("app_start_cold", Some("cold")), | ||
| ("app_start_warm", Some("warm")), | ||
| (APP_START_COLD, Some("cold")), | ||
| (APP_START_WARM, Some("warm")), | ||
|
Comment on lines
-1426
to
+1427
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drive-by change. |
||
| (APP__VITALS__START__VALUE, None), | ||
| (APP__VITALS__START__COLD__VALUE, None), | ||
| (APP__VITALS__START__WARM__VALUE, None), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ use std::sync::LazyLock; | |
|
|
||
| use regex::Regex; | ||
| use relay_base_schema::metrics::{DurationUnit, InformationUnit, MetricUnit}; | ||
| use relay_conventions::measurements::{APP_START_COLD, APP_START_WARM}; | ||
| use relay_event_schema::protocol::{ | ||
| AppContext, BrowserContext, DeviceContext, Event, GpuContext, Measurement, MonitorContext, | ||
| OsContext, ProfileContext, ReplayContext, RuntimeContext, SentryTags, Span, Timestamp, | ||
|
|
@@ -1546,9 +1547,9 @@ pub fn span_op_to_category(op: &str) -> Option<&str> { | |
| /// Reads the event measurements to determine the start type of the event. | ||
| fn get_event_start_type(event: &Event) -> Option<&'static str> { | ||
| // Check the measurements on the event to determine what kind of start type the event is. | ||
| if event.measurement("app_start_cold").is_some() { | ||
| if event.measurement(APP_START_COLD).is_some() { | ||
| Some("cold") | ||
| } else if event.measurement("app_start_warm").is_some() { | ||
| } else if event.measurement(APP_START_WARM).is_some() { | ||
| Some("warm") | ||
|
Comment on lines
-1549
to
1552
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drive-by change. |
||
| } else { | ||
| None | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change I'm making in this file would've caught the bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the functional change in this PR.