You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS operating system version tags don't seem to work after 10.5.7 #6640
Trigger an error from macOS version newer than 10.5.7, e.g. macOS 13.2.
Current user agent string includes legacy version number "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15"
Log Event
Expected Result
Maybe there's a way to still get the true OS version besides user agent strings? Otherwise maybe something like macOS after 10.5.7 might make sense.
Actual Result
Sentry reports the operating system is macOS 10.5.7.
Hello, I've got a question, why did you choose to show an approximate information instead of fetching the exact operating system version ? it there a technical reason ?
We switched to supporting user agent client hints, the new API browser want people using, but that doesn't give OS information automatically to help with privacy and fight against fingerprinting.
Activity
mydea commentedon Jan 4, 2023
Yeah, that seems to be the case.
Apparently, OSX is stuck on 10.15.7, and Windows is stuck on 10.0. On Ubuntu, I get no version at all.
We should adjust this to show as
>= 10.15.7or>= 10.0, probably. We'll look into it!AbhiPrasad commentedon Mar 20, 2023
Fixed with getsentry/relay#1945!
Ostefanini commentedon Apr 13, 2023
Hello, I've got a question, why did you choose to show an approximate information instead of fetching the exact operating system version ? it there a technical reason ?
AbhiPrasad commentedon Apr 13, 2023
@Ostefanini With more modern browser have deprecated the user agent, which led to them freezing the OS value.
We switched to supporting user agent client hints, the new API browser want people using, but that doesn't give OS information automatically to help with privacy and fight against fingerprinting.
Ostefanini commentedon Apr 13, 2023
Thanks for this !
Which version should I use on packages @sentry/react and @sentry/browser for getting the approximated information ?
AbhiPrasad commentedon Apr 13, 2023
The latest version (7.47.0) should give you all you need @Ostefanini - but please reach out if you see something that seems weird.
Ostefanini commentedon Apr 13, 2023
Here is what I get:

AbhiPrasad commentedon Apr 13, 2023
@Ostefanini if you go down to headers (near the bottom of your page), what do you see there?

Ostefanini commentedon Apr 13, 2023
AbhiPrasad commentedon Apr 13, 2023
that seems like a frozen user agent. @TBS1996 do you have more context about what is going on here, since you added this functionality.
Ostefanini commentedon Apr 13, 2023
The version of my web-app is: Sentry 22.3.0
AbhiPrasad commentedon Apr 13, 2023
Ahh @Ostefanini our user agent parsing happens in Relay, so you need to be on
22.3.1: https://github.com/getsentry/relay/blob/master/CHANGELOG.md#2331