Skip to content

Instantly share code, notes, and snippets.

@danriti
Last active December 30, 2015 23:28

Revisions

  1. danriti revised this gist Mar 25, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    source "https://rubygems.org"
    source 'https://[email protected]/pglombardo/'

    ruby "2.0.0"

  2. danriti revised this gist Mar 25, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -6,5 +6,5 @@ ruby "2.0.0"
    gem 'sinatra'

    group :production, :staging do
    gem 'oboe-heroku', '0.9.10.0'
    gem 'oboe-heroku', '~> 0.9.10.0'
    end
  3. danriti revised this gist Mar 24, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion config.ru
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ require 'oboe-heroku'
    # "always", "through" (when the request is initiated with a tracing header
    # from upstream) and "never". You must set this directive to "always" in
    # order to initiate tracing.
    # Oboe::Config[:tracing_mode] = 'through'
    Oboe::Config[:tracing_mode] = 'through'

    # You can remove the following line in production to allow for
    # auto sampling or managing the sample rate through the TraceView portal.
  4. danriti revised this gist Mar 24, 2014. 2 changed files with 10 additions and 7 deletions.
    8 changes: 6 additions & 2 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,10 @@
    source "https://rubygems.org"
    source 'https://[email protected]/pglombardo/'

    ruby "2.0.0"

    gem 'sinatra'
    gem 'oboe-heroku', '0.9.9.dev2'
    gem 'oboe', '2.6.0.rc1'

    group :production, :staging do
    gem 'oboe-heroku', '0.9.10.0'
    end
    9 changes: 4 additions & 5 deletions Gemfile.lock
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,10 @@ GEM
    remote: https://[email protected]/pglombardo/
    specs:
    json (1.8.1)
    oboe (2.6.0.rc1)
    oboe (2.6.2.0)
    json
    oboe-heroku (0.9.9.dev2)
    oboe (>= 2.6.0.dev1)
    oboe-heroku (0.9.10.0)
    oboe (>= 2.6.2.0)
    rack (1.5.2)
    rack-protection (1.5.1)
    rack
    @@ -20,6 +20,5 @@ PLATFORMS
    ruby

    DEPENDENCIES
    oboe (= 2.6.0.rc1)
    oboe-heroku (= 0.9.9.dev2)
    oboe-heroku (= 0.9.10.0)
    sinatra
  5. danriti revised this gist Feb 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion config.ru
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    require './app'
    require 'oboe'
    require 'oboe-heroku'

    # When traces should be initiated for incoming requests. Valid options are
    # "always", "through" (when the request is initiated with a tracing header
  6. danriti revised this gist Feb 27, 2014. 3 changed files with 5 additions and 5 deletions.
    2 changes: 1 addition & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@ source "https://rubygems.org"
    source 'https://[email protected]/pglombardo/'
    ruby "2.0.0"
    gem 'sinatra'
    gem 'oboe-heroku'
    gem 'oboe-heroku', '0.9.9.dev2'
    gem 'oboe', '2.6.0.rc1'
    6 changes: 3 additions & 3 deletions Gemfile.lock
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,8 @@ GEM
    json (1.8.1)
    oboe (2.6.0.rc1)
    json
    oboe-heroku (0.9.0.1)
    oboe (>= 2.3.3.7)
    oboe-heroku (0.9.9.dev2)
    oboe (>= 2.6.0.dev1)
    rack (1.5.2)
    rack-protection (1.5.1)
    rack
    @@ -21,5 +21,5 @@ PLATFORMS

    DEPENDENCIES
    oboe (= 2.6.0.rc1)
    oboe-heroku
    oboe-heroku (= 0.9.9.dev2)
    sinatra
    2 changes: 1 addition & 1 deletion config.ru
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    require 'oboe'
    require './app'
    require 'oboe'

    # When traces should be initiated for incoming requests. Valid options are
    # "always", "through" (when the request is initiated with a tracing header
  7. danriti revised this gist Feb 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@ source "https://rubygems.org"
    source 'https://[email protected]/pglombardo/'
    ruby "2.0.0"
    gem 'sinatra'
    gem 'oboe', '2.6.0.rc1'
    gem 'oboe-heroku'
    gem 'oboe', '2.6.0.rc1'
  8. danriti revised this gist Feb 27, 2014. 2 changed files with 4 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@ source "https://rubygems.org"
    source 'https://[email protected]/pglombardo/'
    ruby "2.0.0"
    gem 'sinatra'
    #gem 'oboe-heroku'
    gem 'oboe', '2.6.0.rc1'
    gem 'oboe-heroku'
    3 changes: 3 additions & 0 deletions Gemfile.lock
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@ GEM
    json (1.8.1)
    oboe (2.6.0.rc1)
    json
    oboe-heroku (0.9.0.1)
    oboe (>= 2.3.3.7)
    rack (1.5.2)
    rack-protection (1.5.1)
    rack
    @@ -19,4 +21,5 @@ PLATFORMS

    DEPENDENCIES
    oboe (= 2.6.0.rc1)
    oboe-heroku
    sinatra
  9. danriti revised this gist Feb 27, 2014. 3 changed files with 12 additions and 10 deletions.
    4 changes: 3 additions & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    source "https://rubygems.org"
    source 'https://[email protected]/pglombardo/'
    ruby "2.0.0"
    gem 'sinatra'
    gem 'oboe-heroku'
    #gem 'oboe-heroku'
    gem 'oboe', '2.6.0.rc1'
    11 changes: 6 additions & 5 deletions Gemfile.lock
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    GEM
    remote: https://rubygems.org/
    remote: https://[email protected]/pglombardo/
    specs:
    oboe (2.3.4.1)
    oboe-heroku (0.9.0.1)
    oboe (>= 2.3.3.7)
    json (1.8.1)
    oboe (2.6.0.rc1)
    json
    rack (1.5.2)
    rack-protection (1.5.1)
    rack
    @@ -17,5 +18,5 @@ PLATFORMS
    ruby

    DEPENDENCIES
    oboe-heroku
    sinatra
    oboe (= 2.6.0.rc1)
    sinatra
    7 changes: 3 additions & 4 deletions config.ru
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,17 @@
    require 'oboe'
    require 'oboe/inst/rack'
    require './app'

    # When traces should be initiated for incoming requests. Valid options are
    # "always", "through" (when the request is initiated with a tracing header
    # from upstream) and "never". You must set this directive to "always" in
    # order to initiate tracing.
    Oboe::Config[:tracing_mode] = 'always'
    # Oboe::Config[:tracing_mode] = 'through'

    # You can remove the following line in production to allow for
    # auto sampling or managing the sample rate through the TraceView portal.
    # Oboe::Config[:sample_rate] = 1000000

    Oboe::Ruby.initialize
    # You may want to replace the Oboe.logger with whichever logger you are using
    # Oboe.logger = Sinatra.logger

    Sinatra::Base.use Oboe::Rack
    run Sinatra::Application
  10. danriti revised this gist Dec 16, 2013. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions Gemfile.lock
    Original file line number Diff line number Diff line change
    @@ -5,14 +5,17 @@ GEM
    oboe-heroku (0.9.0.1)
    oboe (>= 2.3.3.7)
    rack (1.5.2)
    sinatra (1.1.0)
    rack (~> 1.1)
    tilt (~> 1.1)
    rack-protection (1.5.1)
    rack
    sinatra (1.4.4)
    rack (~> 1.4)
    rack-protection (~> 1.4)
    tilt (~> 1.3, >= 1.3.4)
    tilt (1.4.1)

    PLATFORMS
    ruby

    DEPENDENCIES
    oboe-heroku
    sinatra (= 1.1.0)
    sinatra
  11. danriti revised this gist Dec 16, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    source "https://rubygems.org"
    ruby "2.0.0"
    gem 'sinatra', '1.1.0'
    gem 'sinatra'
    gem 'oboe-heroku'
  12. danriti revised this gist Dec 11, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions config.ru
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,5 @@ Oboe::Config[:tracing_mode] = 'always'

    Oboe::Ruby.initialize

    Sinatra::Base.use Oboe::Rack
    run Sinatra::Application
  13. danriti revised this gist Dec 11, 2013. 4 changed files with 38 additions and 2 deletions.
    3 changes: 2 additions & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    source "https://rubygems.org"
    ruby "2.0.0"
    gem 'sinatra', '1.1.0'
    gem 'sinatra', '1.1.0'
    gem 'oboe-heroku'
    18 changes: 18 additions & 0 deletions Gemfile.lock
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    GEM
    remote: https://rubygems.org/
    specs:
    oboe (2.3.4.1)
    oboe-heroku (0.9.0.1)
    oboe (>= 2.3.3.7)
    rack (1.5.2)
    sinatra (1.1.0)
    rack (~> 1.1)
    tilt (~> 1.1)
    tilt (1.4.1)

    PLATFORMS
    ruby

    DEPENDENCIES
    oboe-heroku
    sinatra (= 1.1.0)
    2 changes: 1 addition & 1 deletion Procfile
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    web: bundle exec ruby app.rb -p $PORT
    web: bundle exec rackup config.ru -p $PORT
    17 changes: 17 additions & 0 deletions config.ru
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    require 'oboe'
    require 'oboe/inst/rack'
    require './app'

    # When traces should be initiated for incoming requests. Valid options are
    # "always", "through" (when the request is initiated with a tracing header
    # from upstream) and "never". You must set this directive to "always" in
    # order to initiate tracing.
    Oboe::Config[:tracing_mode] = 'always'

    # You can remove the following line in production to allow for
    # auto sampling or managing the sample rate through the TraceView portal.
    # Oboe::Config[:sample_rate] = 1000000

    Oboe::Ruby.initialize

    run Sinatra::Application
  14. danriti revised this gist Dec 10, 2013. 2 changed files with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Procfile
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    web: bundle exec ruby web.rb -p $PORT
    web: bundle exec ruby app.rb -p $PORT
    File renamed without changes.
  15. danriti revised this gist Dec 10, 2013. 2 changed files with 4 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    source "https://rubygems.org"
    ruby "2.0.0"
    gem 'sinatra', '1.1.0'
    1 change: 1 addition & 0 deletions Procfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    web: bundle exec ruby web.rb -p $PORT
  16. danriti created this gist Dec 10, 2013.
    5 changes: 5 additions & 0 deletions web.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    require 'sinatra'

    get '/' do
    "Hello, world"
    end