Skip to content

chore(processing-errors): Add more detail to processing error analytics#107466

Merged
wedamija merged 3 commits intomasterfrom
danf/proc-errors-more-info
Feb 4, 2026
Merged

chore(processing-errors): Add more detail to processing error analytics#107466
wedamija merged 3 commits intomasterfrom
danf/proc-errors-more-info

Conversation

@wedamija
Copy link
Member

@wedamija wedamija commented Feb 3, 2026

Including the name/value fields so that we can get more details about processing errors like invalid-attribute, etc.

@wedamija wedamija requested a review from a team February 3, 2026 00:53
@wedamija wedamija requested a review from a team as a code owner February 3, 2026 00:53
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 3, 2026
Including the name/value fields so that we can get more details about processing errors like `invalid-attribute`, etc.
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.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

error_type = error.get("type", "unknown")
try:
error_type = error.get("type", "unknown")
error_name = error.get("name")
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing type conversion for error_name unlike error_value

Low Severity

The code converts error_value to a JSON string if it's not already a string (lines 1138-1141), but error_name is passed directly to the analytics event without any type conversion. Existing code in src/sentry/api/serializers/models/event.py explicitly checks if not isinstance(name, str), indicating that name can be non-string. If error_name is a non-string value, it would violate the name: str | None type annotation in EventProcessingErrorRecorded, potentially causing type mismatches or unexpected serialization behavior.

Fix in Cursor Fix in Web

@wedamija wedamija merged commit 2acebb7 into master Feb 4, 2026
79 checks passed
@wedamija wedamija deleted the danf/proc-errors-more-info branch February 4, 2026 00:30
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
…cs (#107466)

Including the name/value fields so that we can get more details about
processing errors like `invalid-attribute`, etc.

<!-- Describe your PR here. -->
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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