Sha256: fec3161cd290aeee4e2c161f764c68f14cc57275310c49f7894430a3c33b6378

Contents?: true

Size: 441 Bytes

Versions: 22

Compression:

Stored size: 441 Bytes

Contents

require 'appsignal'
require 'appsignal/rack/sinatra_instrumentation'

Appsignal.logger.info("Loading Sinatra (#{Sinatra::VERSION}) integration")

app_settings = ::Sinatra::Application.settings
Appsignal.config = Appsignal::Config.new(
  app_settings.root,
  app_settings.environment
)

Appsignal.start_logger(app_settings.root)

Appsignal.start

if Appsignal.active?
  ::Sinatra::Application.use(Appsignal::Rack::SinatraInstrumentation)
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
appsignal-0.12.beta.33 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.32 lib/appsignal/integrations/sinatra.rb