getsentry / getsentry/sentry-dotnet

[WinUI3] Operating system info missing in reports

Open
#3,260 15 comments 1 reaction 0 assignees View on GitHub
.NET Feature Platform: Windows
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

### Package

Sentry

### .NET Flavor

.NET

### .NET Version

8.0.2

### OS

Windows

### SDK Version

4.2.1

### Self-Hosted Sentry Version

_No response_

### Steps to Reproduce

Send test exception to Sentry from a WinUI3 app.

### Expected Result

See detailed info about operating system - incl. build version, e.g. Windows 11 (build 22631.3374).

### Actual Result

WinUI3:
![image](https://github.com/getsentry/sentry-dotnet/assets/2863198/cb6dcd8f-8322-4eaa-8c3f-dd09ff7fef21)
- The "os.name=Windows" doesn't give me any additional information compared to "os=Windows 11"
- Build number missing (e.g. `22631.3374` or `10.0.22631`)

The build information can be gathered via `Environment.OSVersion.Version`. Additionally, it could be helpful to enrich the exception with the machine name (e.g. laptop model), similar how on iOS it shows "device=iPhone 13 Pro". This information can be gathered using `Environment.MachineName`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.