Skip to main content

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

nurse_andrea-1.6.0.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

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

nurse_andrea-1.6.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file nurse_andrea-1.6.0.tar.gz.

File metadata

  • Download URL: nurse_andrea-1.6.0.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for nurse_andrea-1.6.0.tar.gz
Algorithm Hash digest
SHA256 34c0e348fec9547e3bc786ebc76fa734b04ae33a83cd45e9feef5daec0c9d9dc
MD5 9aea7e2cd792266648ea9a5e707080d8
BLAKE2b-256 01810b9291595193a972477844c339baaea1b1d81cf8cb18a307e9326ddf351b

See more details on using hashes here.

File details

Details for the file nurse_andrea-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: nurse_andrea-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for nurse_andrea-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27378763058caba54584edb159b78a9193aedfd88a6a1a4a72b79ef9d8bf1d43
MD5 33759e2c494801829d7bb69632524679
BLAKE2b-256 a2c599963979211b2bfcbb0cd63e7beef8a98921008fc9c6f75ee07742e52ad8

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