File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
instrumentation/http/lib/opentelemetry/instrumentation/http/patches Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ def annotate_span_with_response!(span, response)
5757 return unless response &.status
5858
5959 status_code = response . status . to_i
60- span . set_attribute ( 'http.status_code' , status_code ) #old semconv
61- span . set_attribute ( 'http.response.status_code' , status_code ) #stable semconv
60+ span . set_attribute ( 'http.status_code' , status_code ) # old semconv
61+ span . set_attribute ( 'http.response.status_code' , status_code ) # stable semconv
6262 span . status = OpenTelemetry ::Trace ::Status . error unless HTTP_STATUS_SUCCESS_RANGE . cover? ( status_code )
6363 end
6464
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module Instrumentation
99 module HTTP
1010 module Patches
1111 # Module using old HTTP semantic conventions
12- module Old
12+ module Old
1313 # Module to prepend to HTTP::Client for instrumentation
1414 module Client
1515 # Constant for the HTTP status range
You can’t perform that action at this time.
0 commit comments