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

refactor(mongodb): Removed instrumentation that handles connecting via unix domain socket. #2129

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

bizob2828
Copy link
Member

Description

Mongodb instrumentation has business logic to handle when connecting via a unix domain socket and assign that as the port in db instance metrics. It also hard codes the host to localhost. It is very hard for us to test this in a CI environment as it requires to install a local hosted mongo db server. Due to that and the liklihood of customers connecting via unix domain sockets and 0 bugs reported for this, we are removing this logic.

How to Test

npm run versioned:internal mongodb

Related Issues

Closes #864

jsumners-nr
jsumners-nr previously approved these changes Apr 4, 2024
Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.24%. Comparing base (158c295) to head (6f3e5b0).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2129      +/-   ##
==========================================
+ Coverage   97.20%   97.24%   +0.04%     
==========================================
  Files         251      250       -1     
  Lines       42317    42268      -49     
==========================================
- Hits        41133    41105      -28     
+ Misses       1184     1163      -21     
Flag Coverage Δ
integration-tests-16.x 78.55% <ø> (+0.25%) ⬆️
integration-tests-18.x 78.53% <ø> (+0.25%) ⬆️
integration-tests-20.x 78.53% <ø> (+0.24%) ⬆️
unit-tests-16.x 90.44% <ø> (ø)
unit-tests-18.x 90.35% <ø> (ø)
unit-tests-20.x 90.35% <ø> (ø)
versioned-tests-16.x 74.69% <100.00%> (+0.18%) ⬆️
versioned-tests-18.x 75.79% <100.00%> (+0.17%) ⬆️
versioned-tests-20.x 75.80% <100.00%> (+0.17%) ⬆️

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.

@bizob2828 bizob2828 merged commit 808323f into newrelic:main Apr 4, 2024
24 checks passed
@bizob2828 bizob2828 deleted the mongo-integration-tests branch April 4, 2024 18:43
@github-actions github-actions bot mentioned this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove logic that handles connecting to mongodb via unix domain socket
2 participants