-
Notifications
You must be signed in to change notification settings - Fork 94
feat: add example using Sentry V2 SDK #140
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
fe65b3c
feat: add example using Sentry V2 SDK
gregbrowndev d69c035
wip: code review
gregbrowndev 1ed6b30
Merge branch 'temporalio:main' into feat/sentry-v2-example
gregbrowndev 5cd79d6
wip: improve readmes
gregbrowndev c88a03e
wip: replace v1 sentry example with v2
gregbrowndev 6381dd9
wip: add screenshot of Sentry error
gregbrowndev 19c9359
wip: clean up
gregbrowndev 46cd182
fix: lints and module imports
gregbrowndev d793b15
Merge branch 'main' into feat/sentry-v2-example
cretz 73af0dd
Merge remote-tracking branch 'upstream/main' into feat/sentry-v2-example
gregbrowndev 5cc8323
wip: test sentry integration
gregbrowndev d9b7222
wip: fix sentry integration
gregbrowndev 184922b
wip: refactor into workflow and activity modules
gregbrowndev 4c458f3
wip: fix metaclass conflict error
gregbrowndev f89fc54
wip: test the sentry interceptor
gregbrowndev f280b55
Merge branch 'main' into feat/sentry-v2-example
gregbrowndev aa88148
wip: fix uv.lock and typo
gregbrowndev 5a41fb8
fix: use __call__ in fake transport
gregbrowndev af742a8
Merge remote-tracking branch 'upstream/main' into feat/sentry-v2-example
gregbrowndev 9a6f375
Merge branch 'main' into feat/sentry-v2-example
tconley1428 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| .venv | ||
| __pycache__ | ||
| .idea |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| import asyncio | ||
| import os | ||
|
|
||
| from temporalio.client import Client | ||
|
|
||
|
|
||
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It didn't capture anything for me until I've changed this from
scope.capture_exception()tosentry_sdk.capture_exception()Same for workflow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kenzmed, did you see this in your own app?
The code sample works for me with a live Sentry backend:
If you're running it in your own app, it's probably because you have Sentry SDK v1 installed. This sample is for Sentry v2. Take a look at the original interceptor.
Keep in mind, the original interceptor doesn't work for Sentry SDK v2 and SDK v1 is EOL.