Sha256: 148bb5a698f4d898de8ad8970d708ad9daf41e348ca1f745e2cf23b30e164e46
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
# typed: ignore 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.9.0 | lib/datadog/appsec/contrib/rails/framework.rb |