This is an automated email from the ASF dual-hosted git repository. dill0wn pushed a commit to branch dw/8565 in repository https://gitbox.apache.org/repos/asf/allura.git
commit 15e5f724ebfb138ca2151cefa0b447436f92e01e Author: Dillon Walls <dillon.wa...@slashdotmedia.com> AuthorDate: Tue Jul 30 22:07:57 2024 +0000 [#8565] udpated timermiddleware's ming and pymongo tracking --- Allura/allura/lib/custom_middleware.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py index 848bd5df3..f73036d16 100644 --- a/Allura/allura/lib/custom_middleware.py +++ b/Allura/allura/lib/custom_middleware.py @@ -335,12 +335,13 @@ class AlluraTimerMiddleware(TimerMiddleware): # Timer('ming', ming.schema.FancySchemaItem, '_validate_required', # '_validate_fast_missing', '_validate_optional', # debug_each_call=False), - Timer('mongo', pymongo.collection.Collection, 'count', 'find', - 'find_one', 'aggregate', - 'find_one_and_update', 'find_one_and_replace', 'find_one_and_delete', - 'insert', 'save', 'update', 'remove', 'drop'), - Timer('mongo', pymongo.cursor.Cursor, 'count', 'distinct', - '_refresh'), + Timer('mongo', pymongo.collection.Collection, 'find', 'find_one', 'drop', + 'update_one', 'update_many', 'insert_one', 'insert_many', 'replace_one', + 'delete_one', 'delete_many', 'count_documents', 'estimated_document_count', + 'find_one_and_update', 'find_one_and_replace', 'find_one_and_delete'), + Timer('mongo', pymongo.cursor.Cursor, 'distinct', + 'clone', 'rewind', 'close', 'limit', 'batch_size', 'skip', 'max', 'min', + 'sort', 'explain', 'where', 'collation', 'comment', 'hint', '_refresh'), # urlopen and socket io may or may not overlap partially Timer('repo.Blob.{method_name}', allura.model.repository.Blob, '*'), Timer('repo.Commit.{method_name}', allura.model.repository.Commit, '*'),