Skip to content

fix(mongo): when cursor is returned, track lifecycle until close #5968

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

Closed

Conversation

legraphista
Copy link

This commit checks the return value of the collection operation, and if determined to be a cursor, it closes the span on the cursor 'close' event instead of immediately on the return

PR aims to fix #4495 (similar to #4563, but tracking the cursor as part of the original collection call)

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

this commit check the return value of collection operation,
and if determined to be a cursor, it closes span on cursor 'close' event
@legraphista legraphista force-pushed the fix/mongo-cursor-tracing branch from 3c6f9c1 to 4ce617c Compare October 16, 2022 15:27
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! Could you add some unit tests for this logic?

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2022

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

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.

MongoDB Integration: find method not measured correctly.
2 participants