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.5.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.5.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nurse_andrea-1.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 1267c1a8d2ad79ef581341e55030bcd58d9977eb0fcd353bc68f4a98605d8189
MD5 2a784f97bc424c1522b34469ae01e63c
BLAKE2b-256 9113c22c25770a343c79a554e1e649b657f533823a1fed2540fcfc254b65ad70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nurse_andrea-1.5.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f96b66bd3fd5dbc49ca1ad770a0d768e532546ad581b6fa0988701b3fc20839
MD5 9c0c8aedd1579d135297715bc686970e
BLAKE2b-256 8340c4ca9f757f05af94bcd8d0e6832e08d5fd7e9e242875bf3dd7d4fe0662cc

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