-
-
Notifications
You must be signed in to change notification settings - Fork 257
Breadcrumbs for database operations #1656
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 17 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
347b8f4
Prepare breadcrumb tests
denrase 12f0b6d
Merge branch 'main' into feat/database-breadcrumbs
denrase 6de44bb
create breadcrumbs for batch operations
denrase bd9a135
add breadcrumbs to sentry database & executor
denrase 2e6d025
create breadcrumb when opening db
denrase b7a2fbc
create breadcrumb in SentrySqfliteDatabaseFactory
denrase 86d796e
choose correct breadcrumb in batch tests
denrase cfc7715
set additional error info in batch
denrase 98ee0af
set query and error breadcrumb type
denrase a38cfd5
update in sqflite and database factory
denrase 932ca1c
Merge branch 'main' into feat/database-breadcrumbs
denrase aa66f4a
run format
denrase 0382383
add changelog entries
denrase 2778594
bump ios im runtime
denrase 9978a74
manually set deployemtn target for pods
denrase 26a77fc
Merge branch 'main' into feat/database-breadcrumbs
denrase 788364d
Change status value
denrase e58a4d8
Merge branch 'main' into feat/database-breadcrumbs
denrase af3d295
change breadcrumb type and level
denrase 1a5d4e3
remove duplicated lines
denrase aaf22b4
set type query to success breadcrumbs
denrase 24f79d4
Merge branch 'main' into feat/database-breadcrumbs
denrase 73d740a
fix changelog
denrase 2c353b2
remove remaining error level
denrase 6830e50
Merge branch 'main' into feat/database-breadcrumbs
denrase a20d194
fix changelog
denrase 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
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
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
Oops, something went wrong.
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.
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.
type shouldn't be
error
hereUh 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.
I checked in the documentation and error seemed appropriate, or am I missing something here?
https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/#breadcrumb-types
Do you have a suggestion which type to use instead?
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.
my understanding is the
error
type is for Exceptions.Looking at what is done for Java OkHttp, we send a breadcrumb with type
http
, regardless the status code.Let me ask the team and get back to you
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.
Confirmed: the
query
type is used to report a query is being executed. it has nothing to do with its result.The
error
type is used for exceptions onlyAlso, we could change the level to
warning
, as the exception in the query does not necessarily means a crash of the app, or does it?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.
Thank you for clearing this up! Warning seems better yes, as users might handle these.
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.
Ok updated them to query. Thinking if this is also correct in
apply
andcommit
, which are write operations. 🤔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.
@stefanosiano any thoughts on that? not sure about that here
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.
yeah, I think it's fine, as they are still operations on the database