File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 52
52
- Fix sentry- rails' controller span nesting [#1973](https://github.com/getsentry/sentry-ruby/pull/1973)
53
53
- Fixes [#1899](https://github.com/getsentry/sentry-ruby/issues/1899)
54
54
- Do not report exceptions when a Rails runner exits with `exit 0` [#1988](https://github.com/getsentry/sentry-ruby/pull/1988)
55
+ - Ignore redis key if not UTF8 [#1997](https://github.com/getsentry/sentry-ruby/pull/1997)
56
+ - Fixes [#1992](https://github.com/getsentry/sentry-ruby/issues/1992)
55
57
56
58
### Miscellaneous
57
59
[
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ def commands_description
54
54
def parsed_commands
55
55
commands . map do |statement |
56
56
command , key , *arguments = statement
57
- command_set = { command : command . to_s . upcase , key : key }
57
+ command_set = { command : command . to_s . upcase }
58
+ command_set [ :key ] = key if Utils ::EncodingHelper . valid_utf_8? ( key )
58
59
59
60
if Sentry . configuration . send_default_pii
60
61
command_set [ :arguments ] = arguments
Original file line number Diff line number Diff line change 30
30
expect ( request_span . data ) . to eq ( { server : "127.0.0.1:6379/0" } )
31
31
end
32
32
33
- it "removes bad encoding commands gracefully" do
33
+ it "removes bad encoding keys and arguments gracefully" do
34
34
transaction = Sentry . start_transaction
35
35
Sentry . get_current_scope . set_span ( transaction )
36
36
37
37
# random bytes
38
- redis . set ( "key" , "foo \x1F \xE6 " )
38
+ redis . set ( "key \x1F \xE6 " , "val \x1F \xE6 " )
39
39
40
40
request_span = transaction . span_recorder . spans . last
41
41
description = request_span . description
42
42
43
- expect ( description ) . to eq ( "SET key " )
43
+ expect ( description ) . to eq ( "SET" )
44
44
45
45
expect do
46
46
JSON . generate ( description )
You can’t perform that action at this time.
0 commit comments