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

chore: moved recorders to lib/metrics/recorders #2666

Merged
merged 6 commits into from
Oct 31, 2024

Conversation

svetlanabrennan
Copy link
Contributor

@svetlanabrennan svetlanabrennan commented Oct 16, 2024

Description

Moved 3 metric recorder functions to lib/metrics/recorders.

How to Test

Run unit tests

Related Issues

Fixes #2656

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 98.78788% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.17%. Comparing base (b917b3e) to head (6b878bf).
Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
lib/metrics/recorders/database-operation.js 96.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2666      +/-   ##
==========================================
- Coverage   97.21%   97.17%   -0.04%     
==========================================
  Files         291      294       +3     
  Lines       45928    46096     +168     
==========================================
+ Hits        44650    44796     +146     
- Misses       1278     1300      +22     
Flag Coverage Δ
integration-tests-cjs-18.x 74.27% <45.45%> (+0.10%) ⬆️
integration-tests-cjs-20.x ?
integration-tests-cjs-22.x ?
integration-tests-esm-18.x 49.90% <37.57%> (+0.20%) ⬆️
integration-tests-esm-20.x 49.91% <37.57%> (+0.20%) ⬆️
integration-tests-esm-22.x 49.94% <37.57%> (+0.20%) ⬆️
unit-tests-20.x 88.91% <92.12%> (+0.04%) ⬆️
unit-tests-22.x 88.91% <92.12%> (+0.04%) ⬆️
versioned-tests-18.x 78.97% <97.57%> (-0.14%) ⬇️
versioned-tests-20.x 78.98% <97.57%> (-0.14%) ⬇️
versioned-tests-22.x 78.98% <97.57%> (-0.14%) ⬇️

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.

@svetlanabrennan svetlanabrennan changed the title chore: moved recorders to lib/metrics/recorders chore: moved recorders to lib/metrics/recorders Oct 17, 2024
@svetlanabrennan svetlanabrennan marked this pull request as ready for review October 17, 2024 12:14
lib/metrics/recorders/record-metrics.js Outdated Show resolved Hide resolved
lib/metrics/recorders/middleware-metric-recorder.js Outdated Show resolved Hide resolved
lib/metrics/recorders/record-operation-metrics.js Outdated Show resolved Hide resolved
lib/metrics/recorders/record-operation-metrics.js Outdated Show resolved Hide resolved
lib/metrics/recorders/database.js Outdated Show resolved Hide resolved
lib/db/parsed-statement.js Outdated Show resolved Hide resolved
@svetlanabrennan
Copy link
Contributor Author

@bizob2828 I addressed your comments and pushed up my changes.

lib/shim/datastore-shim.js Outdated Show resolved Hide resolved
lib/shim/datastore-shim.js Outdated Show resolved Hide resolved
test/unit/parsed-statement.test.js Outdated Show resolved Hide resolved
svetlanabrennan and others added 2 commits October 30, 2024 15:27
Co-authored-by: Bob Evans <robert.evans25@gmail.com>
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

LGTM

@svetlanabrennan svetlanabrennan merged commit d8dfe84 into newrelic:main Oct 31, 2024
26 of 27 checks passed
@github-actions github-actions bot mentioned this pull request Nov 7, 2024
jsumners-nr pushed a commit to jsumners-nr/node-newrelic that referenced this pull request Nov 12, 2024
Co-authored-by: Bob Evans <robert.evans25@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

Move middleware, db operation and parsed-statement metric functions to lib/metrics/recorders
2 participants