diff --git a/CHANGELOG.md b/CHANGELOG.md index 30f0c68da3..feaacb3e64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,7 @@ - Remove the OTEL spans endpoint in favor of Envelopes. ([#3973](https://github.com/getsentry/relay/pull/3973)) - Remove the `generate-schema` tool. Relay no longer exposes JSON schema for the event protocol. Consult the Rust type documentation of the `relay-event-schema` crate instead. ([#3974](https://github.com/getsentry/relay/pull/3974)) - Allow creation of `SqliteEnvelopeBuffer` from config, and load existing stacks from db on startup. ([#3967](https://github.com/getsentry/relay/pull/3967)) -- Only tag `user.geo.subregion` on frontend and mobile projects. ([#4013](https://github.com/getsentry/relay/pull/4013)) +- Only tag `user.geo.subregion` on frontend and mobile projects. ([#4013](https://github.com/getsentry/relay/pull/4013), [#4023](https://github.com/getsentry/relay/pull/4023)) ## 24.8.0 diff --git a/relay-event-normalization/src/normalize/span/tag_extraction.rs b/relay-event-normalization/src/normalize/span/tag_extraction.rs index ce00111c90..55a2c59077 100644 --- a/relay-event-normalization/src/normalize/span/tag_extraction.rs +++ b/relay-event-normalization/src/normalize/span/tag_extraction.rs @@ -320,8 +320,9 @@ fn extract_shared_tags(event: &Event) -> BTreeMap { } // We only want this on frontend or mobile modules. - let should_extract_geo = - event.context::().is_some() || MOBILE_SDKS.contains(&event.sdk_name()); + let should_extract_geo = (event.context::().is_some() + && event.platform.as_str() == Some("javascript")) + || MOBILE_SDKS.contains(&event.sdk_name()); if should_extract_geo { if let Some(country_code) = user.geo.value().and_then(|geo| geo.country_code.value()) { @@ -2745,6 +2746,9 @@ LIMIT 1 "trace": { "trace_id": "ff62a8b040f340bda5d830223def1d81", "span_id": "bd429c44b67a3eb4" + }, + "browser": { + "name": "Chrome" } }, "user": {