Skip to content

feat(user-reports): Migrate standalone logic#5731

Open
tobias-wilfert wants to merge 3 commits intomasterfrom
tobias-wilfert/feat/migrate-standalone-user-reports
Open

feat(user-reports): Migrate standalone logic#5731
tobias-wilfert wants to merge 3 commits intomasterfrom
tobias-wilfert/feat/migrate-standalone-user-reports

Conversation

@tobias-wilfert
Copy link
Member

Moves the standalone user report logic out of process_standalone, migrating the logic to the new processor architecture.

Ref: https://linear.app/getsentry/issue/INGEST-817/extract-user-report-logic-from-process-standalone

@tobias-wilfert tobias-wilfert self-assigned this Mar 16, 2026
@tobias-wilfert tobias-wilfert requested a review from a team as a code owner March 16, 2026 15:28
@linear-code
Copy link

linear-code bot commented Mar 16, 2026

Comment on lines +107 to +108
/// A list of reports.
reports: Vec<Item>,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a Vec rather than Items because the processing logic calls fn process_user_reports(user_reports: &mut Vec<Item>, records: &mut RecordKeeper<'_>) which is shared with the error processor (don't think we want to change it to use Items).

There might be a more elegant/better approach here.

Comment on lines +8 to +13
/// Validates and normalizes all user report items in the envelope.
///
/// User feedback items are removed from the envelope if they contain invalid JSON or if the
/// JSON violates the schema (basic type validation). Otherwise, their normalized representation
/// is written back into the item.
pub fn process_user_reports(user_reports: &mut Vec<Item>, records: &mut RecordKeeper<'_>) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Logic moved from the error processor.

@tobias-wilfert tobias-wilfert changed the title feat(user_report): Migrate standalone logic feat(user-reports): Migrate standalone logic Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant