[go: nahoru, domu]

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: add mongoose instrumentation #1131

Merged
merged 18 commits into from
Sep 22, 2022
Merged

Conversation

blumamir
Copy link
Member

Upstream mongoose MongoDB ORM from ext-js repo to contrib.

The mongoose package has 1.8M weekly downloads on npm. The instrumentation has 6.6K weekly downloads on npm and it has been running in production environments for about 2 years with no issues.

I took the opportunity of changing the instrumentation package name and applied a few breaking changes which are documented in the README.md file. I also added support for mongoose version 6, and added test-all-versions to verify the supported version range works.

The code itself is ported AS IS and can be improved in future PRs.

@blumamir blumamir requested a review from a team as a code owner August 29, 2022 06:57
@github-actions github-actions bot requested a review from obecny August 29, 2022 06:57
@codecov
Copy link
codecov bot commented Sep 13, 2022

Codecov Report

Merging #1131 (e200fcb) into main (710103b) will increase coverage by 0.11%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1131      +/-   ##
==========================================
+ Coverage   96.07%   96.18%   +0.11%     
==========================================
  Files          14       15       +1     
  Lines         892      944      +52     
  Branches      191      195       +4     
==========================================
+ Hits          857      908      +51     
- Misses         35       36       +1     
Impacted Files Coverage Δ
...tapackages/auto-instrumentations-node/src/utils.ts 98.03% <100.00%> (ø)
...strumentation-document-load/src/instrumentation.ts 98.80% <100.00%> (+0.01%) ⬆️

Copy link
Member
@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

LGTM

@blumamir blumamir merged commit b35277b into open-telemetry:main Sep 22, 2022
@dyladan dyladan mentioned this pull request Sep 22, 2022
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.

6 participants