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

Uploaded Python 3

File details

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

File metadata

  • Download URL: observr-0.4.6.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.6.tar.gz
Algorithm Hash digest
SHA256 cef335904519ea541aef427dcfa8494faf45f893a4b107745768823e771953a1
MD5 497434776d4670e01bfc4787b1561578
BLAKE2b-256 270ca1398f11ca3d74e37b7f61202142538e8333a2b7f8fa9864024900198106

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: observr-0.4.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fb3675dd4addde965b2bcc5664b3fd24ed7e041d6fa80cb133127681908eb385
MD5 9498ca06aefcb2fa26ae7eed0b9331d3
BLAKE2b-256 7eef8979642cc8368b7ef752136725f03ac720ba809fb41e02a367fb46c3d0cc

See more details on using hashes here.

Provenance

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