-
Notifications
You must be signed in to change notification settings - Fork 112
chore(features): Remove organizations:device-class-synthesis feature
#5816
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 |
|---|---|---|
|
|
@@ -261,7 +261,6 @@ pub unsafe extern "C" fn relay_store_normalizer_normalize_event( | |
| is_renormalize, | ||
| remove_other: config.remove_other.unwrap_or(!is_renormalize), | ||
| emit_event_errors: !is_renormalize, | ||
| device_class_synthesis_config: false, // only supported in relay | ||
|
Member
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. Should be fine to run this from librelay as well. |
||
| enrich_spans: false, | ||
| max_tag_value_length: usize::MAX, | ||
| span_description_rules: None, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,13 +29,6 @@ pub enum Feature { | |
| /// Serialized as `organizations:session-replay-video-disabled`. | ||
| #[serde(rename = "organizations:session-replay-video-disabled")] | ||
| SessionReplayVideoDisabled, | ||
| /// Enables device.class synthesis | ||
| /// | ||
| /// Enables device.class tag synthesis on mobile events. | ||
| /// | ||
| /// Serialized as `organizations:device-class-synthesis`. | ||
| #[serde(rename = "organizations:device-class-synthesis")] | ||
| DeviceClassSynthesis, | ||
|
Member
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. Strictly speaking we should move this to |
||
| /// Allow ingestion of metrics in the "custom" namespace. | ||
| /// | ||
| /// Serialized as `organizations:custom-metrics`. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,9 +120,6 @@ pub struct NormalizationConfig<'a> { | |
| /// When enabled, adds errors in the meta to the event's errors. | ||
| pub emit_event_errors: bool, | ||
|
|
||
| /// When `true`, infers the device class from CPU and model. | ||
| pub device_class_synthesis_config: bool, | ||
|
|
||
| /// When `true`, extracts tags from event and spans and materializes them into `span.data`. | ||
| pub enrich_spans: bool, | ||
|
|
||
|
|
@@ -190,7 +187,6 @@ impl Default for NormalizationConfig<'_> { | |
| is_renormalize: Default::default(), | ||
| remove_other: Default::default(), | ||
| emit_event_errors: Default::default(), | ||
| device_class_synthesis_config: Default::default(), | ||
| enrich_spans: Default::default(), | ||
| max_tag_value_length: usize::MAX, | ||
| span_description_rules: Default::default(), | ||
|
|
@@ -309,9 +305,7 @@ fn normalize(event: &mut Event, meta: &mut Meta, config: &NormalizationConfig) { | |
| normalize_event_tags(event); // Tags are added to every metric | ||
|
|
||
| // TODO: Consider moving to store normalization | ||
| if config.device_class_synthesis_config { | ||
| normalize_device_class(event); | ||
| } | ||
| normalize_device_class(event); | ||
|
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. cabi path now unconditionally strips client-set device.class tagsMedium Severity The Additional Locations (1)Reviewed by Cursor Bugbot for commit 3d963b9. Configure here. |
||
| normalize_stacktraces(event); | ||
| normalize_exceptions(event); // Browser extension filters look at the stacktrace | ||
| normalize_user_agent(event, config.normalize_user_agent); // Legacy browsers filter | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -810,6 +810,10 @@ expression: SerializableAnnotated(& event) | |
| [ | ||
| "a", | ||
| "b" | ||
| ], | ||
| [ | ||
| "device.class", | ||
| "2" | ||
| ] | ||
| ], | ||
| "extra": { | ||
|
|
||


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 was my main concern - should we keep this in place?