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.1.tar.gz (26.4 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.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nurse_andrea-1.4.1.tar.gz
  • Upload date:
  • Size: 26.4 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.1.tar.gz
Algorithm Hash digest
SHA256 7cb5c550693d1e2e736ca8329f2aaf69bad4ab2a3844e8361f0e90d56d26d06e
MD5 a11ab2ee2653dd2a68e16d5b5c20da29
BLAKE2b-256 12b5f7ab6fc2fbdbae5f573ac6b7b4a67f3959bda5921c0c17f686549c10f15b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nurse_andrea-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 723a06fb38da095811a39078894b1105d1a6fbcadf6e216e8051ac47197e8bb4
MD5 79fb14b7b66f9f23ca1e41ec34674ac2
BLAKE2b-256 efec1ea2bde60676fb49b536d1027a791da7d6890e8ca997b0db1ef928319d0b

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