You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I defined PYINSTRUMENT_PROFILE_DIR to record multiple requests, but I also would like to ignore some of them to avoid having too much reports being generated. So I would to be able to set PYINSTRUMENT_PROFILE_DIR and also PYINSTRUMENT_SHOW_CALLBACK. But according the the code, when PYINSTRUMENT_PROFILE_DIR is defined, all requests are recorded and PYINSTRUMENT_SHOW_CALLBACK is ignored.
Thus I think we could remove the or condition here
I defined
PYINSTRUMENT_PROFILE_DIR
to record multiple requests, but I also would like to ignore some of them to avoid having too much reports being generated. So I would to be able to setPYINSTRUMENT_PROFILE_DIR
and alsoPYINSTRUMENT_SHOW_CALLBACK
. But according the the code, whenPYINSTRUMENT_PROFILE_DIR
is defined, all requests are recorded andPYINSTRUMENT_SHOW_CALLBACK
is ignored.Thus I think we could remove the
or
condition herepyinstrument/pyinstrument/middleware.py
Line 52 in 4b37f8c
PYINSTRUMENT_SHOW_CALLBACK = True
.The text was updated successfully, but these errors were encountered: