lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.19.3 vs lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.19.4

- old
+ new

@@ -19,10 +19,10 @@ private def trace_request # rubocop:disable Metrics/AbcSize, Metrics/MethodLength http_method = method.upcase instrumentation_attrs = { - 'http.method' => http_method, + 'http.method' => http_method.to_s, 'http.url' => OpenTelemetry::Common::Utilities.cleanse_url(url) } config = RestClient::Instrumentation.instance.config instrumentation_attrs['peer.service'] = config[:peer_service] if config[:peer_service] span = tracer.start_span(