Observability SDK for Python — ships logs and metrics to NurseAndrea
Project description
nurse-andrea (Python)
NurseAndrea observability SDK for Python — version 1.3.0. Ships
logs and HTTP metrics from Django, FastAPI, and Flask apps to
NurseAndrea.
Install
pip install nurse-andrea
# Framework extras (pick one):
pip install 'nurse-andrea[django]'
pip install 'nurse-andrea[fastapi]'
pip install 'nurse-andrea[flask]'
Configure
import os
import nurse_andrea
nurse_andrea.configure(
org_token=os.environ["NURSE_ANDREA_ORG_TOKEN"],
workspace_slug="checkout",
environment=os.environ.get("PYTHON_ENV", "production"),
host=os.environ.get("NURSE_ANDREA_HOST", "https://nurseandrea.io"),
)
Environment variables
| Variable | Required | Default |
|---|---|---|
NURSE_ANDREA_ORG_TOKEN |
Yes | — |
NURSE_ANDREA_HOST |
No | https://nurseandrea.io |
NURSE_ANDREA_SERVICE_NAME |
No | auto-detected |
Migration from 0.x
The 1.0 auth contract replaces a single token / api_key /
ingest_token field with three required fields: org_token,
workspace_slug, environment. Setting any of the legacy fields
raises MigrationError at boot. See
docs/sdk/migration.md for the
full guide.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nurse_andrea-1.7.0.tar.gz.
File metadata
- Download URL: nurse_andrea-1.7.0.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c604b73ca34f32ead91c25f66f3b4b0d0de2d30a65020b17e3d3dbbd4923e2a
|
|
| MD5 |
95c9afc415e2c407b526247fa662a74e
|
|
| BLAKE2b-256 |
d99fcbae0154769b317e2b47f1daddc219b1e3a9dd98cb88dad176c974799c22
|
File details
Details for the file nurse_andrea-1.7.0-py3-none-any.whl.
File metadata
- Download URL: nurse_andrea-1.7.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e05493825bb35385e4413080366ca98fc075750eeef83c7ee4687fde1596905
|
|
| MD5 |
1d89929ebdc73e2db21a9883857ce67d
|
|
| BLAKE2b-256 |
2aba9823d7634c61a36c6751ad4e6ffc27bc888b555b994f25819726429db731
|