lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.15.0 vs lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.16.0
- old
+ new
@@ -22,10 +22,10 @@
http_method = method.upcase
span = tracer.start_span(
"HTTP #{http_method}",
attributes: {
'http.method' => http_method,
- 'http.url' => url
+ 'http.url' => OpenTelemetry::Common::Utilities.cleanse_url(url)
},
kind: :client
)
OpenTelemetry::Trace.with_span(span) do