Skip to content

feat(occurrences on eap): Ingest issue platform occurrence data into EAP#110581

Merged
shashjar merged 5 commits intomasterfrom
shashjar/ingest-issue-platform-occurrence-data-into-eap
Mar 16, 2026
Merged

feat(occurrences on eap): Ingest issue platform occurrence data into EAP#110581
shashjar merged 5 commits intomasterfrom
shashjar/ingest-issue-platform-occurrence-data-into-eap

Conversation

@shashjar
Copy link
Member

@shashjar shashjar commented Mar 12, 2026

https://www.notion.so/sentry/Occurrences-on-EAP-Ingestion-3218b10e4b5d8080bf28c081cb69b6a1?source=copy_link#3218b10e4b5d80259a0fc72d45bc5598

We're currently not ingesting issue platform occurrence data (occurrence_id, occurrence_type_id) into EAP on occurrence trace items. This PR adds those fields to the EAP ingestion flow.

Note that we're renaming these fields to issue_occurrence_id & group_type_id upon ingestion into EAP in order to avoid confusion with the "occurrences" that we refer to as trace items in the context of EAP.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 12, 2026
elif isinstance(value, float):
return AnyValue(double_value=value)
elif isinstance(value, list) or isinstance(value, tuple):
# Not yet processed on EAP side
Copy link
Member Author

Choose a reason for hiding this comment

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

Removing because arrays are being processed EAP-side, only objects are not currently

@shashjar shashjar requested review from a team and thetruecpaul March 13, 2026 21:02
@shashjar shashjar marked this pull request as ready for review March 13, 2026 21:02
@shashjar shashjar requested a review from a team as a code owner March 13, 2026 21:02
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Copy link
Contributor

@thetruecpaul thetruecpaul left a comment

Choose a reason for hiding this comment

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

LGTM! Good addition :-)

occurrence = event.occurrence
if occurrence is not None:
out["issue_occurrence_id"] = str(occurrence.id)
out["group_type_id"] = int(occurrence.type.type_id)
Copy link
Member Author

Choose a reason for hiding this comment

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

Defensive / redundant casts here to make sure we ingest the right types into EAP

@shashjar shashjar merged commit 756d721 into master Mar 16, 2026
57 checks passed
@shashjar shashjar deleted the shashjar/ingest-issue-platform-occurrence-data-into-eap branch March 16, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants