Module: Datadog::AppSec::Contrib::Sinatra::Framework

Defined in:
lib/datadog/appsec/contrib/sinatra/framework.rb

Overview

Sinatra framework code, used to essentially:

  • handle configuration entries which are specific to Datadog tracing

  • instrument parts of the framework when needed

Class Method Summary collapse

Class Method Details

.setupObject

Configure Rack from Sinatra, but only if Rack has not been configured manually beforehand



13
14
15
# File 'lib/datadog/appsec/contrib/sinatra/framework.rb', line 13

def self.setup
  Datadog.configuration.appsec.instrument(:rack)
end