lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.17.0 vs lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.18.0
- old
+ new
@@ -41,10 +41,9 @@
yield(span).tap do |response|
# Verify return value is a response.
# If so, add additional attributes.
if response.is_a?(::RestClient::Response)
span.set_attribute('http.status_code', response.code)
- span.set_attribute('http.status_text', ::RestClient::STATUSES[response.code])
span.status = OpenTelemetry::Trace::Status.http_to_status(
response.code
)
end
end