Skip to main content

Zero-config observability with structured output for AI agents

Project description

observr — Python SDK

Zero-config observability for Python services. One line to start tracing.

import observr
observr.init(service="my-api")  # HTTP tracing + logs + dashboard. Done.

Install

pip install observr

Quickstart

Flask

import observr
from flask import Flask

observr.init(service="my-api")
app = Flask(__name__)

FastAPI

import observr
from fastapi import FastAPI

observr.init(service="my-api")
app = FastAPI()

Manual spans

with observr.get_client().span("db.query", table="users") as span:
    rows = db.execute("SELECT ...")
    span.set_attribute("row_count", len(rows))

Configuration

observr.init(
    service="my-api",           # Service name shown in dashboard
    collector_url="http://localhost:7676",  # observrd collector URL
    auto_instrument=True,       # Auto-detect Flask / FastAPI
    log_level="DEBUG",          # Minimum log level to capture
)

Links

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

observr-0.4.8.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

observr-0.4.8-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file observr-0.4.8.tar.gz.

File metadata

  • Download URL: observr-0.4.8.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for observr-0.4.8.tar.gz
Algorithm Hash digest
SHA256 f9c02be069e00e802c73faf417cbf1a77d518b5f5494ef6dc58e8c487a01e84f
MD5 8f0dcdc7bb89ee3e446144e1d131c8ab
BLAKE2b-256 abf5de13471d4759ffb9d2d4542248ad260bc6aa063b30d99143fae358c0ee56

See more details on using hashes here.

Provenance

The following attestation bundles were made for observr-0.4.8.tar.gz:

Publisher: publish-py.yml on ydking0911/observr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file observr-0.4.8-py3-none-any.whl.

File metadata

  • Download URL: observr-0.4.8-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for observr-0.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 617a5a71974194af04e3cc31b06fc5cd4fc545ef04a998aeca58332262cc2e14
MD5 1024e0d4638d73a4d10a548bcfd046a4
BLAKE2b-256 fabe38b0e12e62f858c465b566bf12287b0f1adc48c21327cc8a65f838d48332

See more details on using hashes here.

Provenance

The following attestation bundles were made for observr-0.4.8-py3-none-any.whl:

Publisher: publish-py.yml on ydking0911/observr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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