lib/instana/instrumentation/shoryuken.rb in instana-1.200.0.pre1 vs lib/instana/instrumentation/shoryuken.rb in instana-1.200.0
- old
+ new
@@ -27,10 +27,10 @@
{
trace_id: trace_id,
span_id: span_id,
level: level
- }.compact
+ }.reject { |_, v| v.nil? }
end
def try(attributes, *args)
key = args.detect do |a|
attributes && attributes[a] && attributes[a].respond_to?(:string_value)