Skip to content
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

feat(dynamic-sampling): Show stored span per sub-project #80816

Conversation

ArthurKnaus
Copy link
Member

Display the stored span count for each sub project.

Screen.Recording.2024-11-15.at.09.44.19.mov

Part of https://github.com/getsentry/projects/issues/390

@ArthurKnaus ArthurKnaus requested a review from a team as a code owner November 15, 2024 10:33
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 15, 2024
) {
let subSpansContent: React.ReactNode = '';
if (subProjects.length > 0) {
const subProjectSum = subProjects.reduce(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we want to cache this so that it is not re-calculated on re-renders?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really worth it in this case, as the whole list item is already heavily memoized and rarely renders.

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...p/views/settings/dynamicSampling/projectsTable.tsx 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #80816      +/-   ##
==========================================
+ Coverage   74.96%   78.39%   +3.42%     
==========================================
  Files        7207     7207              
  Lines      319509   319514       +5     
  Branches    44001    44003       +2     
==========================================
+ Hits       239529   250487   +10958     
+ Misses      73455    62643   -10812     
+ Partials     6525     6384     -141     

@ArthurKnaus ArthurKnaus merged commit 0e21901 into master Nov 15, 2024
44 of 45 checks passed
@ArthurKnaus ArthurKnaus deleted the aknaus/feat/dynamic-sampling/show-stored-span-per-sub-project branch November 15, 2024 10:57
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants