Skip to content

Instantly share code, notes, and snippets.

@CNBorn
Created May 3, 2012 08:25
Show Gist options
  • Save CNBorn/2584340 to your computer and use it in GitHub Desktop.
Save CNBorn/2584340 to your computer and use it in GitHub Desktop.
#ab -n 100000 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://48ca560b5e2b4fe8b8802ed29c54de81:[email protected]: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