Sha256: ed1f2837b520b70c594b7b7da9dc603296edffec50a816b02a1a26f1c02661d7

Contents?: true

Size: 429 Bytes

Versions: 19

Compression:

Stored size: 429 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 || Dir.pwd,
  app_settings.environment
)

Appsignal.start_logger
Appsignal.start

if Appsignal.active?
  ::Sinatra::Base.use(Appsignal::Rack::SinatraBaseInstrumentation)
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
appsignal-2.0.6 lib/appsignal/integrations/sinatra.rb
appsignal-2.0.5 lib/appsignal/integrations/sinatra.rb
appsignal-2.0.5.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-2.1.0.alpha.3 lib/appsignal/integrations/sinatra.rb
appsignal-2.1.0.alpha.2 lib/appsignal/integrations/sinatra.rb
appsignal-2.1.0.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-2.0.4 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.5 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.5.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.4 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.3 lib/appsignal/integrations/sinatra.rb
appsignal-1.4.0.alpha.2 lib/appsignal/integrations/sinatra.rb
appsignal-1.4.0.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.2 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.1 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.0 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.0.beta.3 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.0.beta.2 lib/appsignal/integrations/sinatra.rb
appsignal-1.3.0.beta.1 lib/appsignal/integrations/sinatra.rb