relay icon indicating copy to clipboard operation
relay copied to clipboard

Parse raw_description for some raw data received by Unity

Open bruno-garcia opened this issue 9 months ago • 3 comments

The Unity SDK (sentry.dotnet.unity) when not aware of which platform it's running on, which is the case for consoles when using our open source SDK. Reports the raw OS name received by the Unity's OS API as raw_description.

Another one received by Unity is: Raw Description: ORBIS_09.508.001 Which should be matched to os.name: PlayStation Not sure how to report the version, but Orbis is PlayStation 4. os.version: 4. Perhaps the version should be 09.508.001

This needs to align with https://github.com/getsentry/tempest reporting of OS version.

But the Raw desc for PS5 is:

Raw Description
05.00.00.41

Note, no prefix with OS name. But the information is under the GPU context:

Graphics Processing Unit
API Type: PlayStation5

So if we can match on the GPU type first, we can do os.name: PlayStation This is consistent also for PlayStation 4: PlayStation4 for gpu.type

There's some existing parsing already, such as: https://github.com/getsentry/relay/blob/90f0dfa2fff01b194bcf1c02b3e9c53459f2fe7d/relay-event-normalization/src/normalize/contexts.rs#L496

Nintendo Switch - Resolved

Resolved in: https://github.com/getsentry/relay/pull/4821

Image
Operating System
Raw Description
Nintendo Switch

Please parse that and set os.name: Nintendo so it aligns with the OS name reported by the Nintendo integrations sending native crashes into Sentry.

bruno-garcia avatar Apr 15 '25 15:04 bruno-garcia

We agreed if we are even able to have os.name even if the version is still buried in raw_description it's valuable. And it's easier to rely on gpu.type at time to know if it's PS4 or PS5. Finnaly,whatever we agree on reporting as os.version should align between the SDK events (Unreal/Unity) and the PlayStation backend service, for native crashes.

bruno-garcia avatar Apr 15 '25 19:04 bruno-garcia

Another thing to note is that crashes sent by Nintendo are not os.name: Switch but os.name: Nintendo If we want to align names from SDK and integrations we should be aware of that.

bruno-garcia avatar Apr 17 '25 01:04 bruno-garcia

The Nintendo team has recently changed how they report os.name from native crashes coming from their system into Sentry.

The agreed format is: Nintendo OS.

bruno-garcia avatar Jun 19 '25 13:06 bruno-garcia