Module: Datadog::Tracing::Contrib::Grape::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/tracing/contrib/grape/patcher.rb
Overview
Patcher enables patching of ‘grape’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.patch ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/datadog/tracing/contrib/grape/patcher.rb', line 22 def patch # Patch endpoints ::Grape::Endpoint.include(Instrumentation) # Subscribe to ActiveSupport events Endpoint.subscribe end |
.target_version ⇒ Object
18 19 20 |
# File 'lib/datadog/tracing/contrib/grape/patcher.rb', line 18 def target_version Integration.version end |