Skip to content

Django tracing middleware/app #79

Open

Description

@ionelmc

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).

Activity

  1. ionelmc commented on Mar 18, 2020

    @ionelmc
    OwnerAuthor

    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

  2. guettli commented on Apr 8, 2021

    @guettli

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions