jbogard / MongoDB.Driver.Core.Extensions.DiagnosticSources

Apache License 2.0
46 stars 18 forks source link

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

Open jamiegs opened 4 years ago

jamiegs commented 4 years ago

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.

jbogard commented 3 years ago

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

jamiegs commented 3 years ago

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.