We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba9d06d commit 7f8ce16Copy full SHA for 7f8ce16
instrumentation/rack/lib/opentelemetry/instrumentation/rack/middlewares/event_handler.rb
@@ -281,14 +281,15 @@ def http_server_request_duration_histogram
281
return unless metrics_enabled?
282
283
@http_server_request_duration_histogram ||= meter.create_histogram(
284
- 'http.server.request.duration',
285
- unit: 's',
+ 'http.server.request.duration',
+ unit: 's',
286
description: 'Duration of HTTP server requests.'
287
)
288
end
289
290
def record_http_server_request_duration_metric(span)
291
292
+
293
# find span duration
294
# end - start / a billion to convert nanoseconds to seconds
295
duration = (span.end_timestamp - span.start_timestamp) / Float(10**9)
0 commit comments