Scrub unused data sent to Honeycomb to save space (#5512) [deploy]
This commit is contained in:
parent
bcd85452e9
commit
6726c62e94
1 changed files with 10 additions and 0 deletions
|
|
@ -21,6 +21,16 @@ else
|
|||
send_data.action_controller
|
||||
deliver.action_mailer
|
||||
].freeze
|
||||
|
||||
# Scrub unused data to save space in Honeycomb
|
||||
config.presend_hook do |fields|
|
||||
if fields.key?("redis.command")
|
||||
fields["redis.command"].slice!(0, 300)
|
||||
elsif fields.key?("sql.active_record.binds")
|
||||
fields.delete("sql.active_record.binds")
|
||||
fields.delete("sql.active_record.datadog_span")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# here we create an additional Honeycomb client that can be used to send custom events
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue