Skip to content

Instantly share code, notes, and snippets.

@pglombardo
Created June 10, 2014 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pglombardo/04ee6fee6aff19634c88 to your computer and use it in GitHub Desktop.
Save pglombardo/04ee6fee6aff19634c88 to your computer and use it in GitHub Desktop.
Dashing with TraceView - The Rackup File
require 'dashing'
require 'oboe'
Oboe::Config[:tracing_mode] = 'always'
Oboe::Config[:sample_rate] = 1e6
Oboe::Config[:verbose] = true
configure do
set :auth_token, 'YOUR_AUTH_TOKEN'
helpers do
def protected!
# Put any authentication code you want in here.
# This method is run before accessing any resource.
end
end
end
map Sinatra::Application.assets_prefix do
run Sinatra::Application.sprockets
end
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment