feat(source-map-issues): Adding group id and title as attr to processing error trace item#112387
Merged
feat(source-map-issues): Adding group id and title as attr to processing error trace item#112387
Conversation
Contributor
Abdkhan14
commented
Apr 7, 2026
- The sample events should be links that take us to the corresponding issue details
- Sending title and group id as attributes so that we don't have to
-
-
- fetch the trace items for the event_ids and then
-
-
-
- fetch the full events using the event details endpoints
-
…ing error trace item
wedamija
reviewed
Apr 7, 2026
Comment on lines
+1280
to
+1282
| produce_processing_errors_to_eap( | ||
| event.project, event.data, processing_errors, group_id=event.group_id, title=event.title | ||
| ) |
Member
There was a problem hiding this comment.
I think the group id should already be available in the occurrence data, are you sure that you need this?
Contributor
Author
There was a problem hiding this comment.
@wedamija We'd have the source map issue's group_id in the occurrence data, instead of the the group_id of the sample events that triggered detection
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix prepared fixes for both issues found in the latest run.
- ✅ Fixed: group_id stored as string, inconsistent with occurrences dataset
- I changed processing error EAP production and attribute registration to store
group_idas an integer so it is written and queried with numeric semantics consistently.
- I changed processing error EAP production and attribute registration to store
- ✅ Resolved by another fix: Inconsistent
group_idtype across EAP datasets- The same change that switched processing errors
group_idto integer in both producer payloads and attribute metadata also resolves this cross-dataset type inconsistency.
- The same change that switched processing errors
Or push these changes by commenting:
@cursor push 719cc87b4a
Preview (719cc87b4a)
diff --git a/src/sentry/processing_errors/eap/producer.py b/src/sentry/processing_errors/eap/producer.py
--- a/src/sentry/processing_errors/eap/producer.py
+++ b/src/sentry/processing_errors/eap/producer.py
@@ -105,7 +105,7 @@
attributes["title"] = title
if group_id is not None:
- attributes["group_id"] = str(group_id)
+ attributes["group_id"] = group_id
item_id = hex_to_item_id(
uuid.uuid5(PROCESSING_ERROR_NAMESPACE, f"{event_data['event_id']}:{index}").hex
diff --git a/src/sentry/search/eap/processing_errors/attributes.py b/src/sentry/search/eap/processing_errors/attributes.py
--- a/src/sentry/search/eap/processing_errors/attributes.py
+++ b/src/sentry/search/eap/processing_errors/attributes.py
@@ -63,7 +63,7 @@
ResolvedAttribute(
public_alias="group_id",
internal_name="group_id",
- search_type="string",
+ search_type="integer",
),
]
}
diff --git a/tests/sentry/processing_errors/eap/test_producer.py b/tests/sentry/processing_errors/eap/test_producer.py
--- a/tests/sentry/processing_errors/eap/test_producer.py
+++ b/tests/sentry/processing_errors/eap/test_producer.py
@@ -124,7 +124,7 @@
assert trace_item.attributes["sdk_name"].string_value == "sentry.javascript.browser"
assert trace_item.attributes["sdk_version"].string_value == "7.0.0"
assert trace_item.attributes["title"].string_value == "ReferenceError: undefined variable"
- assert trace_item.attributes["group_id"].string_value == "12345"
+ assert trace_item.attributes["group_id"].int_value == 12345
@patch("sentry.processing_errors.eap.producer._eap_producer")
@patch("sentry.processing_errors.eap.producer.get_topic_definition")This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b3d8508. Configure here.
wedamija
approved these changes
Apr 7, 2026
george-sentry
pushed a commit
that referenced
this pull request
Apr 9, 2026
…ing error trace item (#112387) - The sample events should be links that take us to the corresponding issue details - Sending title and group id as attributes so that we don't have to - - 1) fetch the trace items for the event_ids and then - - 2) fetch the full events using the event details endpoints <img width="693" height="384" alt="Screenshot 2026-04-07 at 11 49 57 PM" src="https://github.com/user-attachments/assets/7e351577-af8e-447c-a4d4-5af0a77b8bd1" /> --------- Co-authored-by: Abdullah Khan <abdullahkhan@PG9Y57YDXQ.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

