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(instrument-mongoose-7): Added instrumentation package for mongoose v7 (#1606) #2258

Conversation

usfdmiller
Copy link

Which problem is this PR solving?

Fixes #1606

Short description of the changes

Following the comment in the issue by pichlermarc creating a new package for Mongoose v7 was the easiest path forward for me, given the significant, non backwards compatible changes introduced by removing callbacks.

  • Added instrument-mongoose-7 package to release-please-config.json.
  • Removed code and tests for the remove and update methods that were deprecated in Mongoose v6 and removed in Mongoose v7.
  • Removed code and tests that were specific to the callbacks removed in Mongoose v7.
  • Updated test for findOneAndUpdate, which appears to generate only a single span now.
  • Updated .tav.yaml to test the latest minor versions of v7.

Honestly, I mostly just removed callbacks, nonexistent functions, and unnecessary tests. Remaining tests pass and everything seems to build without error.

@usfdmiller usfdmiller requested a review from a team June 5, 2024 22:55
Copy link

CLA Not Signed

@david-luna
Copy link
Contributor

Support was added in #2353

@david-luna david-luna closed this Jan 22, 2025
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.

Support for Mongoose 7
2 participants