Created
May 3, 2012 08:25
-
-
Save CNBorn/2584340 to your computer and use it in GitHub Desktop.
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
#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