Skip to content

Commit 7c03a77

Browse files
underscorebrodyEric Brodykamilogorek
authored
fix: Add missing find method from mongo tracing list (#3253)
Co-authored-by: Eric Brody <[email protected]> Co-authored-by: Kamil Ogórek <[email protected]>
1 parent 647e168 commit 7c03a77

File tree

1 file changed

+2
-0
lines changed
  • packages/tracing/src/integrations

1 file changed

+2
-0
lines changed

packages/tracing/src/integrations/mongo.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const OPERATIONS = [
1919
'dropIndex', // dropIndex(indexName, options, callback)
2020
'dropIndexes', // dropIndexes(options, callback)
2121
'estimatedDocumentCount', // estimatedDocumentCount(options, callback)
22+
'find', // find(query, options, callback)
2223
'findOne', // findOne(query, options, callback)
2324
'findOneAndDelete', // findOneAndDelete(filter, options, callback)
2425
'findOneAndReplace', // findOneAndReplace(filter, replacement, options, callback)
@@ -57,6 +58,7 @@ const OPERATION_SIGNATURES: {
5758
deleteOne: ['filter'],
5859
distinct: ['key', 'query'],
5960
dropIndex: ['indexName'],
61+
find: ['query'],
6062
findOne: ['query'],
6163
findOneAndDelete: ['filter'],
6264
findOneAndReplace: ['filter', 'replacement'],

0 commit comments

Comments
 (0)