Sha256: 06c31cad3a3f118c4146a5523700bb87ef2be2ead2628f3f0129ba76d88cae13

Contents?: true

Size: 460 Bytes

Versions: 174

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

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

174 entries across 174 versions & 1 rubygems

Version Path
appsignal-2.11.10-java lib/appsignal/integrations/sinatra.rb
appsignal-2.11.10 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.4.alpha.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.4.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.3-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.3 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.2-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.2 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.0-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.0 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.0.rc.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.0.rc.1-java lib/appsignal/integrations/sinatra.rb
appsignal-2.11.9-java lib/appsignal/integrations/sinatra.rb
appsignal-2.11.9 lib/appsignal/integrations/sinatra.rb
appsignal-2.11.8-java lib/appsignal/integrations/sinatra.rb
appsignal-2.11.8 lib/appsignal/integrations/sinatra.rb
appsignal-2.11.7 lib/appsignal/integrations/sinatra.rb
appsignal-2.11.7-java lib/appsignal/integrations/sinatra.rb