Skip to content

Commit 7e5f4ff

Browse files
committed
Appease Rubocop
1 parent e6e970c commit 7e5f4ff

File tree

2 files changed

+3
-3
lines changed
  • instrumentation/http/lib/opentelemetry/instrumentation/http/patches

2 files changed

+3
-3
lines changed

instrumentation/http/lib/opentelemetry/instrumentation/http/patches/dup/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

instrumentation/http/lib/opentelemetry/instrumentation/http/patches/old/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)