From 50cf4f93c31160625977371c857e80067b20c2e6 Mon Sep 17 00:00:00 2001 From: Dominik Buszowiecki <44422760+DominikB2014@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:27:54 -0400 Subject: [PATCH] feat(spans): tag `user.geo.subregion` on mobile spans (#3927) Work toward https://github.com/getsentry/sentry/issues/75230 This PR allows mobile spans to be filtered down by subregion too. Anywhere we tag `device.class`, we also should also tag `user.geo.subregion` for this to work --- CHANGELOG.md | 1 + relay-dynamic-config/src/defaults.rs | 12 +++ relay-server/src/metrics_extraction/event.rs | 9 ++ ...t__tests__extract_span_metrics_mobile.snap | 92 +++++++++++++++++++ 4 files changed, 114 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53f0dfd39c..9017e454a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Extract client sdk from transaction into profiles. ([#3915](https://github.com/getsentry/relay/pull/3915)) - Extract `user.geo.subregion` into span metrics/indexed. ([#3914](https://github.com/getsentry/relay/pull/3914)) - Add `last_peek` field to the `Priority` struct. ([#3922](https://github.com/getsentry/relay/pull/3922)) +- Extract `user.geo.subregion` for mobile spans. ([#3927](https://github.com/getsentry/relay/pull/3927)) ## 24.7.1 diff --git a/relay-dynamic-config/src/defaults.rs b/relay-dynamic-config/src/defaults.rs index 43e7d0ad31..616fa9e99d 100644 --- a/relay-dynamic-config/src/defaults.rs +++ b/relay-dynamic-config/src/defaults.rs @@ -471,6 +471,9 @@ pub fn hardcoded_span_metrics() -> Vec<(GroupKey, Vec, Vec Vec<(GroupKey, Vec, Vec Vec<(GroupKey, Vec, Vec Vec<(GroupKey, Vec, Vec