Sha256: 2528aed7488cf7dda561920e2273f41c709fbf435829afe9339008903b584691

Contents?: true

Size: 461 Bytes

Versions: 96

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require "appsignal"
require "appsignal/rack/sinatra_instrumentation"

Appsignal.logger.debug("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

96 entries across 96 versions & 1 rubygems

Version Path
appsignal-3.1.2-java lib/appsignal/integrations/sinatra.rb
appsignal-3.1.2 lib/appsignal/integrations/sinatra.rb
appsignal-3.1.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.1.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.1.0-java lib/appsignal/integrations/sinatra.rb
appsignal-3.1.0 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.27-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.27 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.26-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.26 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.25-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.25 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.24-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.24 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.23-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.23 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.22-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.22 lib/appsignal/integrations/sinatra.rb
appsignal-3.0.21-java lib/appsignal/integrations/sinatra.rb
appsignal-3.0.21 lib/appsignal/integrations/sinatra.rb