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
as by default
PYINSTRUMENT_SHOW_CALLBACK = True.
I defined
PYINSTRUMENT_PROFILE_DIRto 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_DIRand alsoPYINSTRUMENT_SHOW_CALLBACK. But according the the code, whenPYINSTRUMENT_PROFILE_DIRis defined, all requests are recorded andPYINSTRUMENT_SHOW_CALLBACKis ignored.Thus I think we could remove the
orcondition herepyinstrument/pyinstrument/middleware.py
Line 52 in 4b37f8c
PYINSTRUMENT_SHOW_CALLBACK = True.