File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
- Gracefully fail on malformed utf-8 breadcrumb message ([ #2582 ] ( https://github.com/getsentry/sentry-ruby/pull/2582 ) )
11
11
- 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 )
12
14
13
15
## 5.23.0
14
16
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def serialized_data
70
70
MSG
71
71
end
72
72
73
- DATA_SERIALIZATION_ERROR_MESSAGE
73
+ { error : DATA_SERIALIZATION_ERROR_MESSAGE }
74
74
end
75
75
end
76
76
end
Original file line number Diff line number Diff line change 69
69
expect ( result [ 0 ] [ :data ] ) . to eq ( { "name" => "John" , "age" => 25 } )
70
70
expect ( result [ 1 ] [ :category ] ) . to eq ( "bar" )
71
71
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]" )
73
73
end
74
74
end
75
75
end
Original file line number Diff line number Diff line change 104
104
105
105
expect ( result [ :category ] ) . to eq ( "baz" )
106
106
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]" )
108
108
expect ( stringio . string ) . to match ( /can't serialize breadcrumb data because of error: nesting of 10 is too deep/ )
109
109
end
110
110
113
113
114
114
expect ( result [ :category ] ) . to eq ( "cow" )
115
115
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]" )
117
117
expect ( stringio . string ) . to match ( /can't serialize breadcrumb data because of error: nesting of 10 is too deep/ )
118
118
end
119
119
end
You can’t perform that action at this time.
0 commit comments