Created
June 10, 2014 16:50
-
-
Save pglombardo/04ee6fee6aff19634c88 to your computer and use it in GitHub Desktop.
Dashing with TraceView - The Rackup File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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