Sha256: ec254e425cb5f535179fa74a8dc6561798a60495b031a26ffa1636964ffa56f6
Contents?: true
Size: 480 Bytes
Versions: 4
Compression:
Stored size: 480 Bytes
Contents
require 'rack/handler/puma' require 'rack/builder' require 'instana/rack' ::Instana.logger.info "Booting instrumented background Rackapp on port 6511 for tests." Thread.new do app = Rack::Builder.new { use ::Instana::Rack map "/" do run Proc.new { |env| [200, {"Content-Type" => "application/json"}, ["[\"Stan\",\"is\",\"on\",\"the\",\"scene!\"]"]] } end } Rack::Handler::Puma.run(app, {:Host => '127.0.0.1', :Port => 6511}) end sleep(2)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
instana-1.3.2 | test/servers/rackapp_6511.rb |
instana-1.3.1 | test/servers/rackapp_6511.rb |
instana-1.3.0 | test/servers/rackapp_6511.rb |
instana-1.2.0 | test/servers/rackapp_6511.rb |