Metadata-Version: 2.5
Name: appmecca-meerkat
Version: 0.1.0
Summary: AppMecca Meerkat: error monitoring for Python apps, a thin wrapper around sentry-sdk with AppMecca defaults.
Project-URL: Homepage, https://meerkat.appmecca.net
Author: AppMecca
License-Expression: MIT
License-File: LICENSE
Keywords: appmecca,error monitoring,logging,meerkat,sentry
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Debuggers
Classifier: Topic :: System :: Monitoring
Requires-Python: >=3.9
Requires-Dist: sentry-sdk<3,>=2.35
Description-Content-Type: text/markdown

# appmecca-meerkat

Error monitoring for Python apps with [AppMecca Meerkat](https://meerkat.appmecca.net). A thin
wrapper around the MIT-licensed `sentry-sdk`, with AppMecca's defaults:

- `MEERKAT_DSN` (or `SENTRY_DSN`) is read from the environment.
- On AppMecca the release is `{APPMECCA_APP}@{APPMECCA_COMMIT_SHA}` and the environment is
  `APPMECCA_ENV`, so releases and deploy markers line up with no setup. Elsewhere, common CI
  variables (`GITHUB_SHA`, `CI_COMMIT_SHA`, …) are used.
- PII is off, logs are on, sessions are tracked.
- Tracing, profiling and replay are **off**: Meerkat doesn't store them, so the SDK doesn't send them.

```python
import appmecca_meerkat as meerkat

meerkat.init()                       # DSN, release and environment from the environment
meerkat.init(client="acme")          # tag every event with the client (agency work)

meerkat.capture_exception(exc)
meerkat.logger.info("Charging order {order_id}", order_id=42)

with meerkat.monitor("billing-reconcile"):   # cron check-ins
    reconcile()
```

Django, Flask, FastAPI, Celery, logging and the other `sentry-sdk` integrations are enabled
automatically, exactly as upstream.
