Skip to content

Commit

Permalink
feat: tracing prototype (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Jul 5, 2019
1 parent 96031fb commit ca0ba7f
Show file tree
Hide file tree
Showing 31 changed files with 2,038 additions and 266 deletions.
14 changes: 14 additions & 0 deletions examples/tracing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
To run this app:

1. Have a Redis on the Redis default port (if you have Sentry running locally,
you probably already have this)
2. `pip install sentry-sdk flask rq`
3. `FLASK_APP=tracing flask run`
4. `FLASK_APP=tracing flask worker`
5. Go to `http://localhost:5000/` and enter a base64-encoded string (one is prefilled)
6. Hit submit, wait for heavy computation to end
7. `cat events | python traceviewer.py | dot -T svg > events.svg`
8. `open events.svg`

The last two steps are for viewing the traces. Nothing gets sent to Sentry
right now because Sentry does not deal with this data yet.
10 changes: 10 additions & 0 deletions examples/tracing/events

Large diffs are not rendered by default.

439 changes: 439 additions & 0 deletions examples/tracing/events.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca0ba7f

Please sign in to comment.