Skip to content

Avoid calls the Thread.CurrentThread where possible#1466

Merged
bruno-garcia merged 6 commits intomainfrom
minor-thread-perf-tweaks
Feb 11, 2022
Merged

Avoid calls the Thread.CurrentThread where possible#1466
bruno-garcia merged 6 commits intomainfrom
minor-thread-perf-tweaks

Conversation

@SimonCropp
Copy link
Contributor

No description provided.

@getsentry getsentry deleted a comment from codecov-commenter Feb 7, 2022
Module = exception.GetType()?.Assembly?.FullName,
Value = exception.Message,
ThreadId = Thread.CurrentThread.ManagedThreadId,
ThreadId = Environment.CurrentManagedThreadId,
Copy link
Collaborator

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-commenter
Copy link

codecov-commenter commented Feb 11, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.24%. Comparing base (86c0fcd) to head (cbcb4de).
Report is 1799 commits behind head on main.

Additional details and impacted files
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruno-garcia bruno-garcia merged commit cb7ae0c into main Feb 11, 2022
@bruno-garcia bruno-garcia deleted the minor-thread-perf-tweaks branch February 11, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants