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.53 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.52 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.51 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.50 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.49 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.48 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.47 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.46 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.45 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.44 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.43 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.42 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.41 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.40 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.39 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.38 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.37 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.36 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.35 lib/appsignal/integrations/sinatra.rb
appsignal-0.12.beta.34 lib/appsignal/integrations/sinatra.rb