Skip to content

Commit c681511

Browse files
committed
squash: concurrent-ruby
1 parent 5918705 commit c681511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

instrumentation/concurrent_ruby/lib/opentelemetry/instrumentation/concurrent_ruby/patches/thread_pool_executor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ module Patches
1111
# Concurrent::ThreadPoolExecutor patch for instrumentation
1212
module ThreadPoolExecutor
1313
# @see Concurrent::ExecutorService#post
14-
def post(*args, **kwargs, &task)
14+
def post(*args, **kwargs, &)
1515
context = OpenTelemetry::Context.current
1616
return super unless context
1717

18-
super(*args, **kwargs) do # rubocop:disable Style/SuperArguments
18+
super do
1919
OpenTelemetry::Context.with_current(context) do
2020
yield(*args, **kwargs)
2121
end

0 commit comments

Comments
 (0)