Sha256: 7fe6f962d1ed0b137f5f85f5c06baf16df3313c0b721940a19a0c27ea521cf7f
Contents?: true
Size: 594 Bytes
Versions: 3
Compression:
Stored size: 594 Bytes
Contents
require 'ddtrace/contrib/patcher' module Datadog module Contrib module Sinatra # Patcher enables patching of 'sinatra' module. module Patcher include Contrib::Patcher module_function def target_version Integration.version end def patch require 'ddtrace/contrib/sinatra/tracer' register_tracer end def register_tracer ::Sinatra.send(:register, Datadog::Contrib::Sinatra::Tracer) ::Sinatra::Base.prepend(Sinatra::Tracer::Base) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-0.51.1 | lib/ddtrace/contrib/sinatra/patcher.rb |
ddtrace-0.51.0 | lib/ddtrace/contrib/sinatra/patcher.rb |
ddtrace-0.50.0 | lib/ddtrace/contrib/sinatra/patcher.rb |