Skip to content

Commit c8b19e1

Browse files
authored
Update lib/graphql/tracing/prometheus_trace.rb
Also remove unused block
1 parent 332c03e commit c8b19e1

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
@@ -24,7 +24,7 @@ def initialize(client: PrometheusExporter::Client.default, keys_whitelist: ["exe
2424
'execute_query_lazy' => "graphql.execute",
2525
}.each do |trace_method, platform_key|
2626
module_eval <<-RUBY, __FILE__, __LINE__
27-
def #{trace_method}(**data, &block)
27+
def #{trace_method}(**data)
2828
instrument_execution("#{platform_key}", "#{trace_method}") { super }
2929
end
3030
RUBY

0 commit comments

Comments
 (0)