Skip to content

chore: Set ignoreApdex warning log to trace-level - #4188

Merged
amychisholm03 merged 1 commit into
newrelic:mainfrom
amychisholm03:NR-4187/remove-ignoreApdex-warning-logs
Jul 31, 2026
Merged

chore: Set ignoreApdex warning log to trace-level#4188
amychisholm03 merged 1 commit into
newrelic:mainfrom
amychisholm03:NR-4187/remove-ignoreApdex-warning-logs

Conversation

@amychisholm03

@amychisholm03 amychisholm03 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Description

When users set ignoreApdex: true, they get a warning log that Apdex is disabled for every transaction. This is unhelpful because they already know that and the warnings can pollute our logs. This PR changes it only appear when trace-level logs are enabled.

How to Test

There were no tests asserting this warning log was present.

npm run unit

Related Issues

Closes #4187

@amychisholm03
amychisholm03 force-pushed the NR-4187/remove-ignoreApdex-warning-logs branch from 2efd386 to 9cbac83 Compare July 31, 2026 18:36
@amychisholm03 amychisholm03 changed the title chore: Remove unhelpful ignoreApdex warning log chore: Set ignoreApdex warning log to trace-level Jul 31, 2026
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.44%. Comparing base (62c3779) to head (9cbac83).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4188      +/-   ##
==========================================
- Coverage   97.52%   97.44%   -0.09%     
==========================================
  Files         522      522              
  Lines       62927    62927              
  Branches        1        1              
==========================================
- Hits        61371    61320      -51     
- Misses       1556     1607      +51     
Flag Coverage Δ
integration-tests-cjs-22.x 73.64% <0.00%> (ø)
integration-tests-cjs-24.x 74.23% <0.00%> (-0.01%) ⬇️
integration-tests-cjs-26.x 74.23% <0.00%> (ø)
integration-tests-esm-22.x 54.60% <0.00%> (ø)
integration-tests-esm-24.x 55.89% <0.00%> (ø)
integration-tests-esm-26.x 55.89% <0.00%> (ø)
unit-tests-22.x 89.15% <100.00%> (ø)
unit-tests-24.x 89.10% <100.00%> (ø)
unit-tests-26.x 89.10% <100.00%> (ø)
versioned-tests-22.x 97.44% <100.00%> (-0.09%) ⬇️
versioned-tests-24.x 97.44% <100.00%> (-0.09%) ⬇️
versioned-tests-26.x 97.44% <100.00%> (-0.09%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@amychisholm03
amychisholm03 merged commit 79bac5e into newrelic:main Jul 31, 2026
57 of 58 checks passed
@github-project-automation github-project-automation Bot moved this from Needs PR Review to Done: Issues recently completed in Node.js Engineering Board Jul 31, 2026
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.

Calling ignoreApdex() causes unhelpful warning logs

3 participants