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.4.0.tar.gz (24.9 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.4.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nurse_andrea-1.4.0.tar.gz
  • Upload date:
  • Size: 24.9 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.4.0.tar.gz
Algorithm Hash digest
SHA256 5af225894c2b8e9e4fdea154d446a734c5cdec0d95c622354705aa3f801f626a
MD5 ffaabff59873b369133abf63521eab52
BLAKE2b-256 f5631bbb0ed11e3320fb529ca051e8911eaa14857312d6630f1df6ef08bf62c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nurse_andrea-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 21.4 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45412ae94f43bfb78b1da490940fc8d4bf927c4e7d5800ef2b2bb8d993ee85a3
MD5 9cb64d35e129ab4c82f55ff139123207
BLAKE2b-256 1662bc0670253a869d6fffc82a72b9cd736284fef0f00bff73dda8c92eac3c1f

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