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.5.0.tar.gz (16.5 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.5.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for observr-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9a6ed8409d3091710bcbb1180921b7d988a940306da0ea0257c185c032089d4c
MD5 07019893e56e176ef5c08897a19b65bf
BLAKE2b-256 6c396d25e475bfe8b6d4a8f7523eb5d62201b93f0ce0c18b9fc9065b759a056a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: observr-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 13.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10f4c0f310a127e03fdea6f2c662ef10ba5dd91071b788c3d831ecec003e5347
MD5 a9e2510be335c5d38bfa528abd08fe9a
BLAKE2b-256 90b724dc8f7b8f42bbe4b4700fe7c5e4fb98966614ff93a744e793514742572b

See more details on using hashes here.

Provenance

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