File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
relay-server/src/services/processor Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ pub fn process(
3131 return Ok ( None ) ;
3232 }
3333
34- if let Some ( item) = envelope. take_item_by ( |item| {
34+ // Get instead of take as we want to keep the dump as an attachment
35+ if let Some ( item) = envelope. get_item_by ( |item| {
3536 item. ty ( ) == & ItemType :: Attachment
3637 && item. attachment_type ( ) == Some ( & AttachmentType :: Prosperodump )
3738 } ) {
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ def test_playstation_with_feature_flag(
139139 assert event_data ["_metrics" ]["bytes.ingested.event.minidump" ] > 0
140140 assert event_data ["_metrics" ]["bytes.ingested.event.attachment" ] > 0
141141
142+ assert len (event ["attachments" ]) == 3
143+ attachment = event ["attachments" ][0 ]
144+ assert attachment ["attachment_type" ] == "playstation.prosperodump"
145+
142146
143147def test_playstation_attachment (
144148 mini_sentry ,
@@ -219,6 +223,10 @@ def test_playstation_attachment(
219223 assert event_data ["_metrics" ]["bytes.ingested.event.minidump" ] > 0
220224 assert event_data ["_metrics" ]["bytes.ingested.event.attachment" ] > 0
221225
226+ assert len (event ["attachments" ]) == 3
227+ attachment = event ["attachments" ][0 ]
228+ assert attachment ["attachment_type" ] == "playstation.prosperodump"
229+
222230
223231def test_playstation_attachment_no_feature_flag (
224232 mini_sentry ,
You can’t perform that action at this time.
0 commit comments