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

feat: adding instrumentation support for mongo-driver/v2 #6539

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlaricWhitney
Copy link

Adding the mongo-driver/v2 instrumentation.

This is a copy/paste of the v1 instrumentation, and was modified to adhere to the mongo-driver/v2 requirements.

Notable differences:

  • mtest was removed in v2. Replaced with drivertest in the unit testing.

This addresses PR #6419

@AlaricWhitney AlaricWhitney requested a review from a team as a code owner December 28, 2024 17:52
Copy link

linux-foundation-easycla bot commented Dec 28, 2024

CLA Signed

  • ✅login: AlaricWhitney / (95dcf65)

The committers listed above are authorized under a signed CLA.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 82.40000% with 22 lines in your changes missing coverage. Please review.

Project coverage is 68.6%. Comparing base (00786cc) to head (95dcf65).
Report is 27 commits behind head on main.

Files with missing lines Patch % Lines
...ngodb.org/mongo-driver/v2/mongo/otelmongo/mongo.go 80.2% 13 Missing and 5 partials ⚠️
...rg/mongo-driver/v2/mongo/otelmongo/test/version.go 60.0% 2 Missing ⚠️
...odb.org/mongo-driver/v2/mongo/otelmongo/version.go 60.0% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #6539     +/-   ##
=======================================
+ Coverage   68.5%   68.6%   +0.1%     
=======================================
  Files        200     204      +4     
  Lines      16768   16893    +125     
=======================================
+ Hits       11490   11599    +109     
- Misses      4933    4946     +13     
- Partials     345     348      +3     
Files with missing lines Coverage Δ
...godb.org/mongo-driver/v2/mongo/otelmongo/config.go 100.0% <100.0%> (ø)
...rg/mongo-driver/v2/mongo/otelmongo/test/version.go 60.0% <60.0%> (ø)
...odb.org/mongo-driver/v2/mongo/otelmongo/version.go 60.0% <60.0%> (ø)
...ngodb.org/mongo-driver/v2/mongo/otelmongo/mongo.go 80.2% <80.2%> (ø)

... and 1 file with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant