Skip to content

refactor: Refactored dns instrumentation to subscribe to events emitted - #4224

Draft
bizob2828 wants to merge 2 commits into
newrelic:mainfrom
bizob2828:dns-migration
Draft

refactor: Refactored dns instrumentation to subscribe to events emitted#4224
bizob2828 wants to merge 2 commits into
newrelic:mainfrom
bizob2828:dns-migration

Conversation

@bizob2828

Copy link
Copy Markdown
Member

Description

WIP. I want to refactor some subscriber work but just posting to show differences from #4212

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.59016% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.45%. Comparing base (5fe5da2) to head (c9d6da5).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
lib/subscribers/core/base.js 99.18% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4224      +/-   ##
==========================================
- Coverage   97.52%   97.45%   -0.08%     
==========================================
  Files         522      526       +4     
  Lines       62949    63234     +285     
  Branches        1        1              
==========================================
+ Hits        61390    61622     +232     
- Misses       1559     1612      +53     
Flag Coverage Δ
integration-tests-cjs-22.x 73.74% <99.18%> (+0.12%) ⬆️
integration-tests-cjs-24.x 74.34% <99.18%> (+0.13%) ⬆️
integration-tests-cjs-26.x 74.33% <99.18%> (+0.12%) ⬆️
integration-tests-esm-22.x 54.70% <76.63%> (+0.12%) ⬆️
integration-tests-esm-24.x 55.99% <76.63%> (+0.12%) ⬆️
integration-tests-esm-26.x 55.99% <76.63%> (+0.12%) ⬆️
unit-tests-22.x 89.18% <95.08%> (+0.06%) ⬆️
unit-tests-24.x 89.13% <95.08%> (+0.06%) ⬆️
unit-tests-26.x 89.13% <95.08%> (+0.06%) ⬆️
versioned-tests-22.x 97.45% <99.59%> (-0.08%) ⬇️
versioned-tests-24.x 97.45% <99.59%> (-0.08%) ⬇️
versioned-tests-26.x 97.45% <99.59%> (-0.08%) ⬇️

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.

Comment thread lib/subscriber-configs.js Outdated
...require('./subscribers/bunyan/config'),
...require('./subscribers/cassandra-driver/config'),
...require('./subscribers/connect/config'),
...require('./subscribers/dns/config'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We don't want?: ./subscribers/core/dns/config?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i guess we could because my next commit will have some sort of abstraction for core library instrumentation so i can live there as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs PR Review

Development

Successfully merging this pull request may close these issues.

3 participants