Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django tracing middleware/app #79

Open
ionelmc opened this issue Mar 18, 2020 · 2 comments
Open

Django tracing middleware/app #79

ionelmc opened this issue Mar 18, 2020 · 2 comments

Comments

@ionelmc
Copy link
Owner

ionelmc commented Mar 18, 2020

A django-debug-toolbar inspired middleware that allows one to configure tracing at runtime without restarts.

DRF should be a main usecase thus the 'html output appending' technique from DDT can't really be used.

Perhaps a special url /__hunter__/ url where you get a text input for the config and an output pane where any traces will appear.

Prerequisite: #54 (enough if html rendering is implemented).

@ionelmc
Copy link
Owner Author

ionelmc commented Mar 18, 2020

Other considerations:

  • should work with any server setup (devserver, uwsgi etc - websockets/async not acceptable), possible solutions

    • ui makes request to view every sec
    • view reads from pipe or something
    • tracer writes to pipe - however it should not block too much (perhaps some kind of pipe but a buffer that can discard stuff when it overflows - consider stuff from Strace-like functionality #27)
  • the UI should have some line limit on output to avoid killing your browser

@guettli
Copy link

guettli commented Apr 8, 2021

I like the idea very much. How to find a talented and motivated young developer who wants to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants