Sha256: 97b81930b6bcd63015d9c21cf06cb7d3ea87199a06c292a8cc558a6ed0932b14
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 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::AppSec.configure do |datadog_config| datadog_config.instrument(:rack) end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.12.1 | lib/datadog/appsec/contrib/sinatra/framework.rb |
ddtrace-1.12.0 | lib/datadog/appsec/contrib/sinatra/framework.rb |