Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tracing prototype #372

Merged
merged 54 commits into from
Jul 5, 2019
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
cf9eda2
feat: Prototype of session tracking
untitaker May 22, 2019
270ff43
ref: Instrument SQL, and change schema as discussed
untitaker May 28, 2019
d6daf15
fix: Fix CI
untitaker May 31, 2019
45956bd
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker May 31, 2019
b93576e
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker Jun 1, 2019
5176637
fix: Nicer debug log
untitaker Jun 11, 2019
51b72f7
fix: Typing issues
untitaker Jun 11, 2019
54a8111
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker Jun 11, 2019
7b8bbdc
fix: Rethrow exception
untitaker Jun 11, 2019
d066233
fix: Fix more typing
untitaker Jun 11, 2019
e8fadb6
fix: Warn on overwriting existing trace
untitaker Jun 11, 2019
8919884
fix: Add comments about when we discard a trace span
untitaker Jun 11, 2019
eecf4ab
fix: Honor span.sampled=True
untitaker Jun 11, 2019
3eb206e
fix: Rename capture_trace to finish_trace
untitaker Jun 11, 2019
3d63842
fix: Finish span if caller didnt yet
untitaker Jun 11, 2019
6e9e5ee
ref(celery): Use hub.trace
untitaker Jun 11, 2019
b422f13
fix: Rename span op to be compatible with ot
untitaker Jun 11, 2019
26588b6
fix(django): Use hub.span
untitaker Jun 11, 2019
6bee450
fix: Rename success tag to error
untitaker Jun 11, 2019
6d91f3f
fix: Type signature of hub.trace
untitaker Jun 11, 2019
322a8f4
ref: Add layer to abstract breadcrumb vs spans
untitaker Jun 11, 2019
d710109
fix: Restore breadcrumb for http calls, fix tests
untitaker Jun 11, 2019
de516ee
fix(wsgi): Use hub.trace
untitaker Jun 11, 2019
1938a78
ref: Add sampling decision to Span repr
untitaker Jun 11, 2019
8be17f2
fix: Add doc comment
untitaker Jun 11, 2019
07151ce
fix: Fix httplib tests
untitaker Jun 11, 2019
140c9e2
fix: Fix basic tests
untitaker Jun 11, 2019
ad6cf78
ref: Add test for continue_from_headers
untitaker Jun 11, 2019
e3944c3
fix: Add test for sampling propagation
untitaker Jun 12, 2019
cb54a34
fix: Dont crash on AnnotatedValue
untitaker Jun 12, 2019
668fb74
fix: Capture trace for wsgi requests
untitaker Jun 12, 2019
9c21889
fix: Write description and op into trace
untitaker Jun 12, 2019
eace103
fix: Formatting
untitaker Jun 12, 2019
c4c2202
feat: Add tracing example, add rq integration
untitaker Jun 14, 2019
f239d12
fix: Write child spans into scope
untitaker Jun 18, 2019
cc68a77
ref: Move SQL instrumentation out of Django
untitaker Jun 19, 2019
82d7058
ref: Prepend label to SQL span description
untitaker Jun 19, 2019
05d8a41
fix: Fix bug in requests instrumentation
untitaker Jun 19, 2019
7a8b35d
feat: WIP of redis integration
untitaker Jun 19, 2019
ccec6ca
fix: Fix broken sampling logic
untitaker Jun 19, 2019
44508c5
test: Add tests for redis integration
untitaker Jun 19, 2019
375c140
feat: Add subprocess integration
untitaker Jun 19, 2019
3cd6b52
Revert "fix: Fix broken sampling logic"
untitaker Jun 19, 2019
73c116b
fix: Fix tests
untitaker Jun 19, 2019
1aa3383
build: Remove support for sanic 19
untitaker Jun 21, 2019
016da7e
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker Jun 21, 2019
5af009e
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker Jul 2, 2019
2bfa1bd
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker Jul 3, 2019
724eb8d
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker Jul 3, 2019
7673551
fix: Linters
untitaker Jul 4, 2019
60ec0cc
fix: Use sys.executable
untitaker Jul 4, 2019
d461823
fix: Fix sampling
untitaker Jul 4, 2019
cb85f12
Merge remote-tracking branch 'origin/master' into wip/sessiontracking
untitaker Jul 5, 2019
7bc185e
fix: Emit old traceparent, fix linting issues
untitaker Jul 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.