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

db.statement displays getMore command rather than actual query #4

Open
jamiegs opened this issue Oct 14, 2020 · 2 comments
Open

db.statement displays getMore command rather than actual query #4

jamiegs opened this issue Oct 14, 2020 · 2 comments

Comments

@jamiegs
Copy link

jamiegs commented Oct 14, 2020

I've got a mongo query that returns results using a cursor. Mongo then uses the getMore command to pull back pages of results.

When using this library, with CaptureCommandText set to true, the db.statement tag gets set to the getMore command and not the initial mongo command that was called.

@jamiegs jamiegs changed the title db.statement has getMore command rather than actual query db.statement displays getMore command rather than actual query Oct 14, 2020
@jbogard
Copy link
Owner

jbogard commented Nov 2, 2020

I'd love a PR for this, I haven't used cursors

@jamiegs
Copy link
Author

jamiegs commented Nov 2, 2020

I've started on one but I had some troubles with it. I should have some more time later this week to look at it some more.

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

No branches or pull requests

2 participants