Module: Datadog::Tracing::Contrib::Stripe::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/stripe/patcher.rb

Overview

Provides instrumentation for ‘stripe` through the Stripe instrumentation framework

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



20
21
22
23
# File 'lib/datadog/tracing/contrib/stripe/patcher.rb', line 20

def patch
  ::Stripe::Instrumentation.subscribe(:request_begin, :datadog_tracing) { |event| Request.start_span(event) }
  ::Stripe::Instrumentation.subscribe(:request_end, :datadog_tracing) { |event| Request.finish_span(event) }
end

.target_versionObject



16
17
18
# File 'lib/datadog/tracing/contrib/stripe/patcher.rb', line 16

def target_version
  Integration.version
end