lib/request_tracer/integration/base.rb in request-tracer-0.6.4 vs lib/request_tracer/integration/base.rb in request-tracer-0.6.5
- old
+ new
@@ -7,10 +7,10 @@
special_header = HEADER_REGEX.match(k)
special_header && [B3_REQUIRED_FIELDS_FROM_SHORT_NAMES[special_header[1].downcase], v]
end.compact.to_h
end
def extract_headers_from_fields(field_hash)
- B3_REQUIRED_FIELDS.map {|f| ["X_B3_" + f.gsub("_", "").upcase, field_hash[f]]}.to_h
+ B3_REQUIRED_FIELDS.map {|f| ["X-B3-" + f.split('_').collect(&:capitalize).join, field_hash[f]]}.to_h
end
end
end
end