This is an automated email from the ASF dual-hosted git repository. kentontaylor pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 0d97561ba68a52b73c8a373ea3402cc99f72548f Author: Dave Brondsema <[email protected]> AuthorDate: Fri Feb 25 15:50:00 2022 -0500 Disable ming validation measurement since there can be a lot; fix requests Timer --- Allura/allura/lib/custom_middleware.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Allura/allura/lib/custom_middleware.py b/Allura/allura/lib/custom_middleware.py index 3a5ca4c..edcc4db 100644 --- a/Allura/allura/lib/custom_middleware.py +++ b/Allura/allura/lib/custom_middleware.py @@ -325,11 +325,11 @@ class AlluraTimerMiddleware(TimerMiddleware): 'find', 'find_and_modify', 'remove', 'update', 'update_if_not_modified', 'aggregate', 'group', 'map_reduce', 'inline_map_reduce', 'distinct', ), - Timer('ming', ming.schema.Document, 'validate', - debug_each_call=False), - Timer('ming', ming.schema.FancySchemaItem, '_validate_required', - '_validate_fast_missing', '_validate_optional', - debug_each_call=False), + # Timer('ming', ming.schema.Document, 'validate', + # debug_each_call=False), + # 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', 'group', 'map_reduce', 'inline_map_reduce', 'find_and_modify', @@ -348,7 +348,7 @@ class AlluraTimerMiddleware(TimerMiddleware): 'flush', debug_each_call=False), Timer('solr', pysolr.Solr, 'add', 'delete', 'search', 'commit'), Timer('urlopen', urlopen_pkg, 'urlopen'), - Timer('requests.get', requests, 'get'), + Timer('requests', requests.sessions.Session, 'request'), Timer('base_repo_tool.{method_name}', allura.model.repository.RepositoryImplementation, 'last_commit_ids'), Timer('pygments', pygments, 'highlight'), # often called from within a template so will overlap w/ jinja
