Sha256: 62bd6a0a9c374e34cf83b1130c0f54a014f47d38f5050997272c80070be86dcb

Contents?: true

Size: 464 Bytes

Versions: 28

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

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

Appsignal.internal_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

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
appsignal-3.8.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.8.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.8.0-java lib/appsignal/integrations/sinatra.rb
appsignal-3.8.0 lib/appsignal/integrations/sinatra.rb
appsignal-3.7.6-java lib/appsignal/integrations/sinatra.rb
appsignal-3.7.6 lib/appsignal/integrations/sinatra.rb
appsignal-3.7.2-java lib/appsignal/integrations/sinatra.rb
appsignal-3.7.2 lib/appsignal/integrations/sinatra.rb
appsignal-3.7.1-java lib/appsignal/integrations/sinatra.rb
appsignal-3.7.1 lib/appsignal/integrations/sinatra.rb
appsignal-3.7.0-java lib/appsignal/integrations/sinatra.rb
appsignal-3.7.0 lib/appsignal/integrations/sinatra.rb
appsignal-3.6.5-java lib/appsignal/integrations/sinatra.rb
appsignal-3.6.5 lib/appsignal/integrations/sinatra.rb
appsignal-3.6.4-java lib/appsignal/integrations/sinatra.rb
appsignal-3.6.4 lib/appsignal/integrations/sinatra.rb
appsignal-3.6.3-java lib/appsignal/integrations/sinatra.rb
appsignal-3.6.3 lib/appsignal/integrations/sinatra.rb
appsignal-3.6.2-java lib/appsignal/integrations/sinatra.rb
appsignal-3.6.2 lib/appsignal/integrations/sinatra.rb