File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 99
1010- Gracefully fail on malformed utf-8 breadcrumb message ([ #2582 ] ( https://github.com/getsentry/sentry-ruby/pull/2582 ) )
1111 - Fixes [ #2376 ] ( https://github.com/getsentry/sentry-ruby/issues/2376 )
12+ - Fix breadcrumb serialization error message to be an object ([ #2584 ] ( https://github.com/getsentry/sentry-ruby/pull/2584 ) )
13+ - Fixes [ #2478 ] ( https://github.com/getsentry/sentry-ruby/issues/2478 )
1214
1315## 5.23.0
1416
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def serialized_data
7070 MSG
7171 end
7272
73- DATA_SERIALIZATION_ERROR_MESSAGE
73+ { error : DATA_SERIALIZATION_ERROR_MESSAGE }
7474 end
7575 end
7676 end
Original file line number Diff line number Diff line change 6969 expect ( result [ 0 ] [ :data ] ) . to eq ( { "name" => "John" , "age" => 25 } )
7070 expect ( result [ 1 ] [ :category ] ) . to eq ( "bar" )
7171 expect ( result [ 2 ] [ :category ] ) . to eq ( "baz" )
72- expect ( result [ 2 ] [ :data ] ) . to eq ( "[data were removed due to serialization issues]" )
72+ expect ( result [ 2 ] [ :data ] [ :error ] ) . to eq ( "[data were removed due to serialization issues]" )
7373 end
7474 end
7575end
Original file line number Diff line number Diff line change 104104
105105 expect ( result [ :category ] ) . to eq ( "baz" )
106106 expect ( result [ :message ] ) . to eq ( "I cause issues" )
107- expect ( result [ :data ] ) . to eq ( "[data were removed due to serialization issues]" )
107+ expect ( result [ :data ] [ :error ] ) . to eq ( "[data were removed due to serialization issues]" )
108108 expect ( stringio . string ) . to match ( /can't serialize breadcrumb data because of error: nesting of 10 is too deep/ )
109109 end
110110
113113
114114 expect ( result [ :category ] ) . to eq ( "cow" )
115115 expect ( result [ :message ] ) . to eq ( "I cause too much recursion" )
116- expect ( result [ :data ] ) . to eq ( "[data were removed due to serialization issues]" )
116+ expect ( result [ :data ] [ :error ] ) . to eq ( "[data were removed due to serialization issues]" )
117117 expect ( stringio . string ) . to match ( /can't serialize breadcrumb data because of error: nesting of 10 is too deep/ )
118118 end
119119 end
You can’t perform that action at this time.
0 commit comments