jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.32k stars 332 forks source link

Defaults - filter silk itself from requests #702

Open stuaxo opened 5 months ago

stuaxo commented 5 months ago

Most users, who aren't debugging silk itself probably don't need to see requests from silk itself.

Personally I have this in my conf - it

def ignore_silk_urls(request):
    url_re = r'^(/silk|^/assets/silk)'
    return re.match(url_re, request.path) is None

SILKY_INTERCEPT_FUNC = ignore_silk_urls

Most new users want to see the site they are working on, not silk itself. It would be good if there was either a way to toggle this in the GUI, or an easier way to filter these in the config, which maybe defaults in.