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: add linux distributions to os context #963

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

supervacuus
Copy link
Collaborator

@supervacuus supervacuus commented Mar 7, 2024

Fixes #943.

This adds Linux distribution meta-data to the os context as follows:

Screenshot 2024-03-07 at 14 55 00

Only name and version should be indexed.

Further steps required before we merge/release this:

Copy link

github-actions bot commented Mar 7, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 6097e9d

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

Attention: Patch coverage is 90.80460% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 82.69%. Comparing base (4df5326) to head (8e1c4e1).
Report is 1 commits behind head on master.

❗ Current head 8e1c4e1 differs from pull request most recent head c18b5ff. Consider uploading reports for the commit c18b5ff to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #963      +/-   ##
==========================================
+ Coverage   82.58%   82.69%   +0.11%     
==========================================
  Files          53       53              
  Lines        7505     7536      +31     
  Branches     1206     1215       +9     
==========================================
+ Hits         6198     6232      +34     
+ Misses       1196     1194       -2     
+ Partials      111      110       -1     

@supervacuus
Copy link
Collaborator Author

The failing Mingw test is unrelated to the change (a change in the GHA runner image requires us to install zlib for MinGW).

@supervacuus supervacuus force-pushed the feat/add_linux_distros_to_os_context branch from 700a65a to 44866bb Compare March 20, 2024 18:05
@supervacuus
Copy link
Collaborator Author

@markushi, @Swatinem, can one of you give this a thorough look?

Copy link
Member

@markushi markushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few minor nits, looking good!

src/sentry_os.c Outdated Show resolved Hide resolved
tests/unit/test_os_release.c Outdated Show resolved Hide resolved
src/sentry_os.c Show resolved Hide resolved
src/sentry_os.c Outdated Show resolved Hide resolved
src/sentry_os.c Show resolved Hide resolved
@supervacuus
Copy link
Collaborator Author

again, failing test here is due to: #968

narsaynorath pushed a commit to getsentry/sentry that referenced this pull request May 17, 2024
Users of the Native SDK also want to search for the Linux distributions
their events came from:
getsentry/sentry-native#943

The corresponding PRs to

* develop docs: getsentry/develop#1227
* relay: getsentry/relay#3443
* Native SDK: getsentry/sentry-native#963
cmanallen pushed a commit to getsentry/sentry that referenced this pull request May 21, 2024
Users of the Native SDK also want to search for the Linux distributions
their events came from:
getsentry/sentry-native#943

The corresponding PRs to

* develop docs: getsentry/develop#1227
* relay: getsentry/relay#3443
* Native SDK: getsentry/sentry-native#963
@supervacuus supervacuus mentioned this pull request May 22, 2024
5 tasks
@supervacuus supervacuus marked this pull request as draft June 17, 2024 09:33
@supervacuus
Copy link
Collaborator Author

PR is on hold until the context format is clarified. Nested context formats with three layers are unacceptable for the backend to search, so we either change the format in the SDK or map it locally in the sentry backend.

Since the format was at the core of how to add this feature from the start, it is best to change the format in the SDK (and with it, in the develop-docs, relay, and sentry backend).

This is currently deprioritized.

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.

Add Linux distro meta-data to OS context.
3 participants