Sha256: b6eab41461b343690bf951e790c1a409d06240ba219230b45e3c2f32e5d070b0

Contents?: true

Size: 656 Bytes

Versions: 9

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

require_relative '../patcher'

module Datadog
  module Tracing
    module Contrib
      module ConcurrentRuby
        # Patcher enables patching of 'Future' class.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            require_relative 'future_patch'
            patch_future
          end

          # Propagate tracing context in Concurrent::Future
          def patch_future
            ::Concurrent::Future.include(FuturePatch)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ddtrace-1.15.0 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.13.0 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.12.1 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.12.0 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.11.1 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.11.0 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb
ddtrace-1.11.0.beta1 lib/datadog/tracing/contrib/concurrent_ruby/patcher.rb