Skip to content
New issue

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

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

Already on GitHub? # to your account

feat(event-schema): Add getters for most contexts in Discover #2607

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Oct 13, 2023

Add field implementations in the Getter on Event for most contexts declared by Discover. This is needed for ondemand metric extraction in widgets, so that all context fields can be used in widget queries.

For the full list of Discover fields, see:

https://github.com/getsentry/sentry/blob/master/src/sentry/snuba/events.py

After this has merged, the metrics extraction allow list in Sentry can be updated. It is located here:

https://github.com/getsentry/sentry/blob/8c61340c93045bc1c9e4d1fa1a77b062c8dfb44e/src/sentry/snuba/metrics/extraction.py#L51

@jan-auer jan-auer requested a review from a team October 13, 2023 14:48
@jan-auer jan-auer self-assigned this Oct 13, 2023
relay-event-schema/src/protocol/event.rs Outdated Show resolved Hide resolved
@jan-auer jan-auer merged commit 2971805 into master Oct 23, 2023
20 checks passed
@jan-auer jan-auer deleted the feat/getter-contexts branch October 23, 2023 09:46
armenzg added a commit to getsentry/sentry that referenced this pull request Oct 23, 2023
Adds more fields to the mapping for on-demand metric rules.
Now that getsentry/relay#2607 got merged we need to update the list of supported fields.
armenzg added a commit to getsentry/sentry that referenced this pull request Oct 23, 2023
Adds more fields to the mapping for on-demand metric rules. Now that
getsentry/relay#2607 got merged we need to
update the list of supported fields.

Fixes #56929
jan-auer added a commit that referenced this pull request Nov 16, 2023
Getter access for device context fields added in #2607 missed
`device.model`. This PR adds this field so it can be used for on-demand
metric extraction.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants