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

Node 3566 testing #9

Open
wants to merge 2 commits into
base: NODE-3593-real-app
Choose a base branch
from
Open

Conversation

meadowshj
Copy link

Added logging for reporter stats

jcolekaplan
jcolekaplan approved these changes Oct 10, 2024
Comment on lines +93 to +113
} else if (tag.endsWith(post)) {
const unifiedTag = tag.slice(prefixLen, -postLen);

unified[unifiedTag] = { n, wrapperMicros: totalMicros, wrapperMean: mean };
unified[unifiedTag].tag = unifiedTag + ' post';

summarized.push(unified[unifiedTag]);
} else if (tag.endsWith(put)) {
const unifiedTag = tag.slice(prefixLen, -putLen);

unified[unifiedTag] = { n, wrapperMicros: totalMicros, wrapperMean: mean };
unified[unifiedTag].tag = unifiedTag + ' put';

summarized.push(unified[unifiedTag]);
} else if (tag.endsWith(get)) {
const unifiedTag = tag.slice(prefixLen, -getLen);

unified[unifiedTag] = { n, wrapperMicros: totalMicros, wrapperMean: mean };
unified[unifiedTag].tag = unifiedTag + ' get';

summarized.push(unified[unifiedTag]);

Choose a reason for hiding this comment

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

Probably could clean this up since it's a lot of repeat code around the tags but since it's for testing purposes only it doesn't matter much

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.

2 participants