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

Uploaded Python 3

File details

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

File metadata

  • Download URL: observr-0.4.7.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.7.tar.gz
Algorithm Hash digest
SHA256 1a037c979e4ae605a38d3bfe26acba191546438380525e7556a2066c3ef28d60
MD5 c1a4c3d8142c9d58616f29ab8b616f9b
BLAKE2b-256 5736e6aa472d63f4456589e871cb102db976a1c17b4f0b0778b0fb6c9b5ecaf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for observr-0.4.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: observr-0.4.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6f1c80083f4322a778c0a9bd023ae249203c2039511ee10fbb61a8b2242e4433
MD5 d35b63d1be16d79af67f1674d1a6f84a
BLAKE2b-256 dcd1bace22d4ab7fc7b36c2245b5fa802a1cff33959913c46f57ca7fad6cc9e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for observr-0.4.7-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