Skip to content

Instantly share code, notes, and snippets.

@clvrobj
Forked from CNBorn/gist:2584340
Created May 3, 2012 08:25
Show Gist options
  • Save clvrobj/2584343 to your computer and use it in GitHub Desktop.
Save clvrobj/2584343 to your computer and use it in GitHub Desktop.
#ab -r -n 10000 http://127.0.0.1:8880/hello/world
#You have to run Sentry at 127.0.0.1:8000 and replace the following DSN.
from bottle import route, run
@route('/hello/:name')
def index(name='World'):
from raven import Client
client = Client('http://5a77e2293b2e441188dcd03180e47e6d:4294d8e71d044c87b49a6d3f4abf113d@127.0.0.1:8000/2')
client.captureMessage('hello world!')
return '<b>Hello</b>'
run(host='localhost', port=8880)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment