Skip to content

Commit 332c03e

Browse files
committed
Fix PrometheusTrace with multiple tracers
1 parent f9ef0f3 commit 332c03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/tracing/prometheus_trace.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(client: PrometheusExporter::Client.default, keys_whitelist: ["exe
2525
}.each do |trace_method, platform_key|
2626
module_eval <<-RUBY, __FILE__, __LINE__
2727
def #{trace_method}(**data, &block)
28-
instrument_execution("#{platform_key}", "#{trace_method}", &block)
28+
instrument_execution("#{platform_key}", "#{trace_method}") { super }
2929
end
3030
RUBY
3131
end

0 commit comments

Comments
 (0)