Sha256: 83940e6ac2a6a0f77be2a71bb5235e57dcebbfa4bdf2ed221318a80421cb2c2e

Contents?: true

Size: 448 Bytes

Versions: 27

Compression:

Stored size: 448 Bytes

Contents

require 'appsignal'

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::Listener)
  ::Sinatra::Application.use(Appsignal::Rack::SinatraInstrumentation)
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
appsignal-0.11.18 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.17 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.16 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.15 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.14 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.14.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.13 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.13.beta.4 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.13.beta.3 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.13.beta.2 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.13.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.13.beta.0 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.12 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.11 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.10 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.10.beta.2 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.10.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.9 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.8.beta.4 lib/appsignal/integrations/sinatra.rb
appsignal-0.11.8.beta.3 lib/appsignal/integrations/sinatra.rb