Sha256: 5efbdba63f04f35eb0ca99aabb823c451ac155835cd61b99512b62486e9da8df

Contents?: true

Size: 400 Bytes

Versions: 13

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

if %w[1 true].include?((ENV['DD_APPSEC_ENABLED'] || '').downcase)
  begin
    require_relative 'contrib/auto_instrument'
    Datadog::AppSec::Contrib::AutoInstrument.patch_all
  rescue StandardError => e
    Kernel.warn(
      '[datadog] AppSec failed to instrument. No security check will be performed. error: ' \
      " #{e.class.name} #{e.message}"
    )
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/appsec/autoload.rb
datadog-2.8.0 lib/datadog/appsec/autoload.rb
datadog-2.7.1 lib/datadog/appsec/autoload.rb
datadog-2.7.0 lib/datadog/appsec/autoload.rb
datadog-2.6.0 lib/datadog/appsec/autoload.rb
datadog-2.5.0 lib/datadog/appsec/autoload.rb
datadog-2.4.0 lib/datadog/appsec/autoload.rb
datadog-2.3.0 lib/datadog/appsec/autoload.rb
datadog-2.2.0 lib/datadog/appsec/autoload.rb
datadog-2.1.0 lib/datadog/appsec/autoload.rb
datadog-2.0.0 lib/datadog/appsec/autoload.rb
datadog-2.0.0.beta2 lib/datadog/appsec/autoload.rb
datadog-2.0.0.beta1 lib/datadog/appsec/autoload.rb