Skip to content

Commit ca0ba7f

Browse files
authored
feat: tracing prototype (getsentry#372)
1 parent 96031fb commit ca0ba7f

31 files changed

+2038
-266
lines changed

examples/tracing/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
To run this app:
2+
3+
1. Have a Redis on the Redis default port (if you have Sentry running locally,
4+
you probably already have this)
5+
2. `pip install sentry-sdk flask rq`
6+
3. `FLASK_APP=tracing flask run`
7+
4. `FLASK_APP=tracing flask worker`
8+
5. Go to `http://localhost:5000/` and enter a base64-encoded string (one is prefilled)
9+
6. Hit submit, wait for heavy computation to end
10+
7. `cat events | python traceviewer.py | dot -T svg > events.svg`
11+
8. `open events.svg`
12+
13+
The last two steps are for viewing the traces. Nothing gets sent to Sentry
14+
right now because Sentry does not deal with this data yet.

examples/tracing/events

+10
Large diffs are not rendered by default.

examples/tracing/events.svg

+439
Loading

0 commit comments

Comments
 (0)