-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Avoid calls the Thread.CurrentThread where possible #1466
Conversation
@@ -103,7 +103,7 @@ internal IEnumerable<SentryException> CreateSentryException(Exception exception) | |||
Type = exception.GetType()?.FullName, | |||
Module = exception.GetType()?.Assembly?.FullName, | |||
Value = exception.Message, | |||
ThreadId = Thread.CurrentThread.ManagedThreadId, | |||
ThreadId = Environment.CurrentManagedThreadId, |
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.
Shouldn't we add a test that invokes MainExceptionProcessor and MainSentryEventProcessor to check if ThreadId and SentryThread.Id are equal?
Other than that, the PR looks good for me.
Codecov Report
@@ Coverage Diff @@
## main #1466 +/- ##
==========================================
- Coverage 84.26% 84.24% -0.03%
==========================================
Files 219 219
Lines 7387 7388 +1
Branches 1417 1417
==========================================
- Hits 6225 6224 -1
- Misses 727 728 +1
- Partials 435 436 +1
Continue to review full report at Codecov.
|
No description provided.