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(native): update contexts interface to flatten distribution keys #11936

Merged

Conversation

JoshuaMoelans
Copy link
Member

@JoshuaMoelans JoshuaMoelans commented Nov 25, 2024

DESCRIBE YOUR PR

In reference to getsentry/sentry-native#963 ; we need to flatten the payload so the values are properly searchable.

ToDo:

  • update SDK repository link for distribution_name entry
  • ? re-add link to /etc/os-release configuration

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

Copy link

vercel bot commented Nov 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 3:43pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2024 3:43pm
sentry-docs ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2024 3:43pm

JoshuaMoelans added a commit to getsentry/relay that referenced this pull request Nov 28, 2024
…4292)

(continuation of #3443 )

<!-- Describe your PR here. -->
To make these fields searchable, we had to change from a nested to a
flattened approach. This is provided in sentry-native ([relevant
PR](getsentry/sentry-native#963)).

The update is also tracked on the docs side:
getsentry/sentry-docs#11936
JoshuaMoelans added a commit to getsentry/sentry that referenced this pull request Nov 28, 2024
<!-- Describe your PR here. -->
update to #69865
To search the distribution fields, we cannot have them in a hierarchy
`os.distribution.name`, we instead need them flattened to
`os.distribution_name`

This is part of reworking the following native-SDK PR:
getsentry/sentry-native#963

The update is also tracked on the docs side:
getsentry/sentry-docs#11936
And on Relay: getsentry/relay#4292
andrewshie-sentry pushed a commit to getsentry/sentry that referenced this pull request Dec 2, 2024
<!-- Describe your PR here. -->
update to #69865
To search the distribution fields, we cannot have them in a hierarchy
`os.distribution.name`, we instead need them flattened to
`os.distribution_name`

This is part of reworking the following native-SDK PR:
getsentry/sentry-native#963

The update is also tracked on the docs side:
getsentry/sentry-docs#11936
And on Relay: getsentry/relay#4292
Copy link
Collaborator

@supervacuus supervacuus left a comment

Choose a reason for hiding this comment

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

Your changes make sense, given the structural modifications the backend required. To point directly to the corresponding os-release keys was the right choice.

@JoshuaMoelans JoshuaMoelans merged commit ba07bb7 into master Dec 4, 2024
10 checks passed
@JoshuaMoelans JoshuaMoelans deleted the feat/native_distribution_context_update_Joshua branch December 4, 2024 16:00
Lms24 pushed a commit that referenced this pull request Dec 13, 2024
…11936)

* Updated distribution keys to flattened versions

* link to native main branch + os-release dos

* Change links to relevant Options entry
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants