in lib/elastic/transport/transport/http/faraday.rb [34:46]
def perform_request(method, path, params = {}, body = nil, headers = nil, opts = {})
super do |connection, url|
capture_otel_span_attributes(connection, url)
headers = parse_headers(headers, connection)
body = body ? __convert_to_json(body) : nil
body, headers = compress_request(body, headers)
response = connection.connection.run_request(method.downcase.to_sym, url, body, headers)
Response.new(response.status, decompress_response(response.body), response.headers)
end
end