module Datadog::Contrib::Grape::Patcher
Patcher
enables patching of 'grape' module.
Public Instance Methods
patch()
click to toggle source
# File lib/ddtrace/contrib/grape/patcher.rb, line 22 def patch # Patch endpoints ::Grape::Endpoint.include(Instrumentation) # Subscribe to ActiveSupport events Datadog::Contrib::Grape::Endpoint.subscribe end
target_version()
click to toggle source
# File lib/ddtrace/contrib/grape/patcher.rb, line 18 def target_version Integration.version end