-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
SessionID as string #3834
SessionID as string #3834
Conversation
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
Co-authored-by: Stefano <[email protected]>
Co-authored-by: Stefano <[email protected]>
Co-authored-by: Stefano <[email protected]>
Co-authored-by: Stefano <[email protected]>
Co-authored-by: Stefano <[email protected]>
…e difference of .equals if objects are not the same
…va into feat/lazy-span-id-v8
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- SessionID as string ([#3834](https://github.com/getsentry/sentry-java/pull/3834)) If none of the above apply, you can opt out of this check by adding |
} catch (IllegalArgumentException e) { | ||
logger.log(SentryLevel.ERROR, "%s sid is not valid.", sidString); | ||
String sid = reader.nextStringOrNull(); | ||
if (sid != null && sid.length() == 32) { |
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.
should we still keep the log call in the else branch?
@@ -79,7 +78,7 @@ public Session( | |||
final @Nullable Date timestamp, | |||
final int errorCount, | |||
final @Nullable String distinctId, | |||
final @Nullable UUID sessionId, | |||
final @Nullable String sessionId, |
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.
do we have to apply some validation still that this is compliant with the uuid format?
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.
couple of comments to address, but lgtm otherwise
…ce when invoking with string
…-java into feat/fast-id-generation
…to SentryId constructor
📜 Description
Follow-up to #3818
💡 Motivation and Context
Replace usage of
UUID
inSession
with String and generate ID usingSentryUUID
class.💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps