This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
fix: converting UTC and ISO timestamp when missing Locale/TimeZone do not error #505
Merged
marandaneto
merged 2 commits into
getsentry:master
from
marandaneto:fix/missing-locale-timestamp
Aug 4, 2020
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -18,7 +18,8 @@ public static void main(String[] args) { | |
// your Sentry project/dashboard | ||
options.setDsn("https://[email protected]/1808954"); | ||
|
||
// All events get assigned to the release. See more at https://docs.sentry.io/workflow/releases/ | ||
// All events get assigned to the release. See more at | ||
// https://docs.sentry.io/workflow/releases/ | ||
options.setRelease("[email protected]+1"); | ||
|
||
// Modifications to event before it goes out. Could replace the event altogether | ||
|
@@ -50,9 +51,13 @@ public static void main(String[] args) { | |
options.setDebug(true); | ||
// To change the verbosity, use: | ||
// By default it's DEBUG. | ||
options.setDiagnosticLevel(SentryLevel.ERROR); // A good option to have SDK debug log in prod is to use only level ERROR here. | ||
options.setDiagnosticLevel( | ||
SentryLevel | ||
.ERROR); // A good option to have SDK debug log in prod is to use only level | ||
// ERROR here. | ||
|
||
// Exclude frames from some packages from being "inApp" so are hidden by default in Sentry UI: | ||
// Exclude frames from some packages from being "inApp" so are hidden by default in Sentry | ||
// UI: | ||
options.addInAppExclude("org.jboss"); | ||
}); | ||
|
||
|
@@ -110,7 +115,8 @@ public static void main(String[] args) { | |
Sentry.captureEvent(event, SentryLevel.DEBUG); | ||
} | ||
|
||
// All events that have not been sent yet are being flushed on JVM exit. Events can be also flushed manually: | ||
// All events that have not been sent yet are being flushed on JVM exit. Events can be also | ||
// flushed manually: | ||
// Sentry.close(); | ||
} | ||
|
||
|
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.
Likely worth not having sessions enabled at all for this device since they'll be broken
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.
yep,
SessionAdapter
will drop on deserialization at least.