lib/elastic_apm/trace_context/tracestate.rb in elastic-apm-4.5.1 vs lib/elastic_apm/trace_context/tracestate.rb in elastic-apm-4.6.0
- old
+ new
@@ -105,10 +105,10 @@
def self.parse(header)
entries =
split_by_nl_and_comma(header)
.each_with_object({}) do |entry, hsh|
k, v = entry.split('=')
-
+ next unless k && v && !k.empty? && !v.empty?
hsh[k] =
case k
when 'es' then EsEntry.new(v)
else Entry.new(k, v)
end