Skip to content

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.

@codecov
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.

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