MongoDB.Driver.Core.Extensions.DiagnosticSources icon indicating copy to clipboard operation
MongoDB.Driver.Core.Extensions.DiagnosticSources copied to clipboard

db.statement displays getMore command rather than actual query

Open jamiegs opened this issue 4 years ago • 2 comments

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 avatar Oct 14 '20 20:10 jamiegs

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

jbogard avatar Nov 02 '20 20:11 jbogard

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.

jamiegs avatar Nov 02 '20 20:11 jamiegs