maykinmedia / django-log-outgoing-requests Goto Github PK
View Code? Open in Web Editor NEWLog outgoing requests made by requests library
License: MIT License
Log outgoing requests made by requests library
License: MIT License
So that projects don't need to provide/duplicate all the settings and we ship with sane defaults.
For example: https://github.com/jazzband/django-cookie-consent/blob/master/cookie_consent/conf.py
It's currently missing
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:
log_outgoing_requests.service.purge_log_records
, taking the (optional?) argument older_than
which is a number of dayspurge_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.
(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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.