Sha256: 436faa0188657e420815078f58e0652ac4e148abe534d528d2a7728bc611108a

Contents?: true

Size: 429 Bytes

Versions: 43

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

43 entries across 43 versions & 1 rubygems

Version Path
appsignal-2.5.3-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.3 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.3.alpha.2 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.3.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.2-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.2 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.1-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.1 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.1.beta.1-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.1.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.0-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.0 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.0.beta.1-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.0.beta.1 lib/appsignal/integrations/sinatra.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/integrations/sinatra.rb
appsignal-2.5.0.alpha.1 lib/appsignal/integrations/sinatra.rb
appsignal-2.4.3 lib/appsignal/integrations/sinatra.rb
appsignal-2.4.2 lib/appsignal/integrations/sinatra.rb