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

Add sendCountMetric to logger #178

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Add sendCountMetric to logger #178

merged 2 commits into from
Dec 19, 2023

Conversation

elizabethmv
Copy link
Contributor

This PR adds an exact copy of sendCountMetric here centrally, it was initially added in SPB but is being used in SDK repos. After this is in we can remove the one temporarily added in checkout-components

@elizabethmv elizabethmv requested a review from a team as a code owner December 19, 2023 14:57
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (d47dd04) 87.95% compared to head (489424b) 81.83%.
Report is 4 commits behind head on main.

Files Patch % Lines
src/logger.js 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
- Coverage   87.95%   81.83%   -6.13%     
==========================================
  Files          20       21       +1     
  Lines         490      534      +44     
  Branches       40       40              
==========================================
+ Hits          431      437       +6     
- Misses         59       97      +38     
Flag Coverage Δ
client 76.51% <50.00%> (-7.50%) ⬇️
server 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

src/logger.js Outdated Show resolved Hide resolved
@elizabethmv elizabethmv merged commit 0678191 into main Dec 19, 2023
4 of 5 checks passed
@elizabethmv elizabethmv deleted the add-count-metric branch December 19, 2023 15:54
@@ -19,3 +19,25 @@ export const getLogger: GetLogger = memoize(() => {
url: loggerUrl,
});
});

export const sendCountMetric = ({
Copy link

Choose a reason for hiding this comment

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

Suggested change
export const sendCountMetric = ({
export const sendCountMetric = ({

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.

None yet

3 participants