lib/opentelemetry/instrumentation/concurrent_ruby/instrumentation.rb in opentelemetry-instrumentation-concurrent_ruby-0.18.2 vs lib/opentelemetry/instrumentation/concurrent_ruby/instrumentation.rb in opentelemetry-instrumentation-concurrent_ruby-0.19.0

- old
+ new

@@ -14,20 +14,20 @@ require_dependencies patch end present do - defined?(::Concurrent::Future) + defined?(::Concurrent::ThreadPoolExecutor) end private def require_dependencies - require_relative 'patches/future' + require_relative 'patches/thread_pool_executor' end def patch - ::Concurrent::Future.send(:include, Patches::Future) + ::Concurrent::ThreadPoolExecutor.prepend Patches::ThreadPoolExecutor end end end end end