Sha256: dac564bb4e788bf74160c74670da1637cebf298fd2e076bbf0f117381b9ac7f9
Contents?: true
Size: 734 Bytes
Versions: 3
Compression:
Stored size: 734 Bytes
Contents
module Datadog module AppSec module Contrib module Rails # Rails specific framework tie module Framework def self.setup Datadog::AppSec.configure do |datadog_config| rails_config = config_with_defaults(datadog_config) activate_rack!(datadog_config, rails_config) end end def self.config_with_defaults(datadog_config) datadog_config[:rails] end # Apply relevant configuration from Sinatra to Rack def self.activate_rack!(datadog_config, sinatra_config) datadog_config.instrument( :rack, ) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems