Metadata-Version: 2.4
Name: flask_watchlog_apm
Version: 0.1.4
Summary: Lightweight APM for Flask that sends metrics to Watchlog Agent
Home-page: https://github.com/watchlogserver/flask_watchlog_apm
Author: Mohammadreza
Author-email: mohammadnajm75@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: Flask
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Flask
Requires-Dist: psutil
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# APM for Flask – Watchlog Integration

🎯 Lightweight and production-safe Application Performance Monitoring (APM) middleware for Flask apps, made for [Watchlog](https://watchlog.io).

Track route execution time, status codes, memory usage, and errors — and send them periodically to your Watchlog agent.

---

## 🚀 Features

- 🔧 Automatic tracking of all Flask routes
- 📊 Aggregation of metrics by path and method
- ⚠️ Error tracking support (optional)
- 🌐 Sends metrics to Watchlog agent over HTTP
- 🧠 Captures memory usage (`rss`, `vms`)
- 💡 Safe-by-default (never crashes your app)

---

## 📦 Installation

```bash
pip install flask_watchlog_apm
