Skip to main content

Lightweight HTTP request logger middleware for Python web frameworks (Flask, Django, FastAPI)

Project description

Sentinel Logger

PyPI version Python versions License: MIT

Lightweight Python middleware for logging HTTP requests to your Sentinel backend. Zero-config observability for Flask, Django, FastAPI, and any WSGI/ASGI framework.

Features

  • Framework agnostic - Works with Flask, Django, FastAPI, Starlette, Bottle, Pyramid
  • 🚀 Low latency - Background thread with 500ms flush interval
  • 🔄 Smart retries - Exponential backoff with jitter (max 5 attempts)
  • 🎯 Reliable - Keep-alive connections, bounded queue (10k items)
  • 🛡️ Safe - Drops 4xx errors (no retry for client mistakes)
  • 📦 Tiny - Single dependency (requests)

Installation

pip install sentinel-logger

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentinel_logger-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sentinel_logger-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file sentinel_logger-0.1.0.tar.gz.

File metadata

  • Download URL: sentinel_logger-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sentinel_logger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 764521dc7b587625661f86eb00b03bbf8568f4c50cd3cc452c65ecec3a46bc4c
MD5 716dfc53652eb5059b25d527684497df
BLAKE2b-256 9915397abe73408a0adb87822d7ccebb908478bd9499755e2eb1f9a084eff10b

See more details on using hashes here.

File details

Details for the file sentinel_logger-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sentinel_logger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf680aa98ad55067b9f7f74acffef35ded856171cf6d92f3286d7b06f21e82b3
MD5 46106e2ed473d2a13254ba71a13c8cd6
BLAKE2b-256 2dcc72c88f55561bef5f791a23d4788c03a21aa08189f4e68fd6fa02c8cdcfb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page