Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(contexts): Report macOS version instead of Darwin kernel version #451

Merged
merged 6 commits into from Mar 29, 2022

Conversation

rajivshah3
Copy link
Contributor

In line with the other Sentry SDKs, the Rust SDK should report the macOS name ("macOS" instead of "Darwin"), version, and build. This PR uses the approach from sentry-native by calling sysctlbyname withkern.osproductversion and kern.osversion.

Closes #449

@rajivshah3 rajivshah3 marked this pull request as ready for review March 25, 2022 23:53
sentry-contexts/src/utils.rs Outdated Show resolved Hide resolved
@Swatinem
Copy link
Member

While you are at it, feel free to add this change to the CHANGELOG.md

@codecov-commenter
Copy link

Codecov Report

Merging #451 (68401bd) into master (9dcbeeb) will decrease coverage by 0.04%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##           master     #451      +/-   ##
==========================================
- Coverage   80.15%   80.11%   -0.05%     
==========================================
  Files          73       73              
  Lines        8355     8361       +6     
==========================================
+ Hits         6697     6698       +1     
- Misses       1658     1663       +5     

@Swatinem Swatinem enabled auto-merge (squash) March 29, 2022 08:22
@Swatinem Swatinem merged commit 0fcb6a0 into getsentry:master Mar 29, 2022
@rajivshah3 rajivshah3 deleted the feature/get-macos-version branch March 30, 2022 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Report macOS versions instead of Darwin kernel versions
3 participants