Giter Site home page Giter Site logo

django-log-outgoing-requests's People

Contributors

alextreme avatar pi-sigma avatar sergei-maertens avatar vaszig avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

django-log-outgoing-requests's Issues

Move periodic "purge records" implementation to the library

This is currently implemented in Open Forms to interface with Celery tasks, but we can avoid leaking those implementation details.

Ideally, this library offers two things:

  • a function log_outgoing_requests.service.purge_log_records, taking the (optional?) argument older_than which is a number of days
  • an equivalent management command purge_outgoing_request_logs, taking the --older-than CLI flag which calls the function above.

This allows users of the library to decide for themselves if they want to hook this up via a celery beat task or a cronjob like solution where the management command is called (could be cron on a VM or kubernetes cronjob, or just manual invoking for low-traffic projects).

This way we avoid pulling in all of celery as a dependency and offer maximum flexibility while still hiding our own implementation details.

Request: Display body of request

(i'll skip the part about security/privacy)
Just the outgoing request doesn't tell the whole story, especially in a system where requests to a single end-point accepts all kinds of request like a ESB.
These endpoints can respond with a 200, but in fact return a exception in the body.

Wishes for this feature:

  • Enable body logging for x minutes
  • Purge body logs after x time
  • Style body syntax
  • Show a "copy" button
  • Show a "delete" button

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.