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

fix incorrect gc types in newer versions of node #61

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Oct 24, 2024

Inspired by #52, thanks @ikonst!

@@ -51,8 +53,10 @@ describe('metrics', () => {
expect(stats.eventLoop).to.have.property('p95')
expect(stats.eventLoop.p95).to.be.a('number')

console.log(stats.gc)

Choose a reason for hiding this comment

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

🟠 Code Quality Violation

Unexpected console statement. (...read more)

Debugging with console (such as console.log or console.info) is not considered a bad practice, but these statements can be accidentally left in production code, leading to unnecessary log pollution. It is important to remove or replace these debugging statements to maintain clean and secure production builds.

View in Datadog  Leave us feedback  Documentation

@ikonst
Copy link
Contributor

ikonst commented Oct 24, 2024

Good to know I wasn't crazy :)

@@ -7,6 +7,7 @@ const nativeMetrics = require('..')

describe('metrics', () => {
beforeEach(() => {
console.log('js:', process.version)

Choose a reason for hiding this comment

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

🟠 Code Quality Violation

Unexpected console statement. (...read more)

Debugging with console (such as console.log or console.info) is not considered a bad practice, but these statements can be accidentally left in production code, leading to unnecessary log pollution. It is important to remove or replace these debugging statements to maintain clean and secure production builds.

View in Datadog  Leave us feedback  Documentation

Copy link

Overall package size

Self size: 1.24 MB
Deduped: 1.64 MB
No deduping: 1.64 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | node-addon-api | 6.1.0 | 393.77 kB | 393.77 kB | | node-gyp-build | 3.9.0 | 8.81 kB | 8.81 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@rochdev rochdev marked this pull request as ready for review October 24, 2024 23:15
@rochdev rochdev requested a review from a team as a code owner October 24, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants