Sha256: 675ec5b50a5805a8f8f47aa1e2478e65a3e52794abb0526c58bb2dfe34c0915f

Contents?: true

Size: 587 Bytes

Versions: 30

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module AppSec
    module Contrib
      # Instrument Sinatra.
      module Sinatra
        # Sinatra framework code, used to essentially:
        # - handle configuration entries which are specific to Datadog tracing
        # - instrument parts of the framework when needed
        module Framework
          # Configure Rack from Sinatra, but only if Rack has not been configured manually beforehand
          def self.setup
            Datadog.configuration.appsec.instrument(:rack)
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
datadog-2.9.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.8.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.7.1 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.7.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.6.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.5.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.4.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.3.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.2.0 lib/datadog/appsec/contrib/sinatra/framework.rb
ddtrace-1.23.3 lib/datadog/appsec/contrib/sinatra/framework.rb
ddtrace-1.23.2 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.1.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.0.0 lib/datadog/appsec/contrib/sinatra/framework.rb
ddtrace-1.23.1 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.0.0.beta2 lib/datadog/appsec/contrib/sinatra/framework.rb
ddtrace-1.22.0 lib/datadog/appsec/contrib/sinatra/framework.rb
datadog-2.0.0.beta1 lib/datadog/appsec/contrib/sinatra/framework.rb
ddtrace-1.21.1 lib/datadog/appsec/contrib/sinatra/framework.rb
ddtrace-1.21.0 lib/datadog/appsec/contrib/sinatra/framework.rb
ddtrace-1.20.0 lib/datadog/appsec/contrib/sinatra/framework.rb