Skip to content

Commit c4c2202

Browse files
committed
feat: Add tracing example, add rq integration
1 parent eace103 commit c4c2202

File tree

10 files changed

+1206
-7
lines changed

10 files changed

+1206
-7
lines changed

examples/tracing/README.md

Lines changed: 14 additions & 0 deletions
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

Lines changed: 10 additions & 0 deletions
Large diffs are not rendered by default.

examples/tracing/events.svg

Lines changed: 439 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)