diff --git a/CHANGELOG.md b/CHANGELOG.md index abb9d0f07f..53f0dfd39c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Extract `user.geo.country_code` into span indexed. ([#3911](https://github.com/getsentry/relay/pull/3911)) - Add `span.system` tag to span metrics ([#3913](https://github.com/getsentry/relay/pull/3913)) - Switch glob implementations from `regex` to `regex-lite`. ([#3926](https://github.com/getsentry/relay/pull/3926)) +- Disables unicode support in user agent regexes. ([#3929](https://github.com/getsentry/relay/pull/3929)) - 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)) diff --git a/relay-ua/src/lib.rs b/relay-ua/src/lib.rs index 38556ae49c..f1594469a5 100644 --- a/relay-ua/src/lib.rs +++ b/relay-ua/src/lib.rs @@ -17,7 +17,9 @@ pub use uaparser::{Device, UserAgent, OS}; /// For usage, see [`Parser`]. static UA_PARSER: Lazy = Lazy::new(|| { let ua_regexes = include_bytes!("../uap-core/regexes.yaml"); - UserAgentParser::from_bytes(ua_regexes) + UserAgentParser::builder() + .with_unicode_support(false) + .build_from_bytes(ua_regexes) .expect("Could not create UserAgent. You are probably using a bad build of relay.") });