Sha256: 476703c4ff55f77c5f4bbb641e1b6b7faff7798cd08decefe8ea6a1a3c0ea60f
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
# typed: true require 'datadog/tracing' require 'datadog/tracing/contrib/patcher' require 'datadog/tracing/contrib/sucker_punch/ext' require 'datadog/tracing/contrib/sucker_punch/integration' module Datadog module Tracing module Contrib module SuckerPunch # Patcher enables patching of 'sucker_punch' module. module Patcher include Kernel # Ensure that kernel methods are always available (https://sorbet.org/docs/error-reference#7003) include Contrib::Patcher module_function def target_version Integration.version end def patch require 'datadog/tracing/contrib/sucker_punch/exception_handler' require 'datadog/tracing/contrib/sucker_punch/instrumentation' ExceptionHandler.patch! Instrumentation.patch! end def get_option(option) Datadog.configuration.tracing[:sucker_punch].get_option(option) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.0.0 | lib/datadog/tracing/contrib/sucker_punch/patcher.rb |
ddtrace-1.0.0.beta2 | lib/datadog/tracing/contrib/sucker_punch/patcher.rb |