Skip to content

Commit 7f8ce16

Browse files
committed
style: Rubocop
1 parent ba9d06d commit 7f8ce16

File tree

1 file changed

+3
-2
lines changed
  • instrumentation/rack/lib/opentelemetry/instrumentation/rack/middlewares

1 file changed

+3
-2
lines changed

instrumentation/rack/lib/opentelemetry/instrumentation/rack/middlewares/event_handler.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,15 @@ def http_server_request_duration_histogram
281281
return unless metrics_enabled?
282282

283283
@http_server_request_duration_histogram ||= meter.create_histogram(
284-
'http.server.request.duration',
285-
unit: 's',
284+
'http.server.request.duration',
285+
unit: 's',
286286
description: 'Duration of HTTP server requests.'
287287
)
288288
end
289289

290290
def record_http_server_request_duration_metric(span)
291291
return unless metrics_enabled?
292+
292293
# find span duration
293294
# end - start / a billion to convert nanoseconds to seconds
294295
duration = (span.end_timestamp - span.start_timestamp) / Float(10**9)

0 commit comments

Comments
 (0)