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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a6ed8409d3091710bcbb1180921b7d988a940306da0ea0257c185c032089d4c
|
|
| MD5 |
07019893e56e176ef5c08897a19b65bf
|
|
| BLAKE2b-256 |
6c396d25e475bfe8b6d4a8f7523eb5d62201b93f0ce0c18b9fc9065b759a056a
|
Provenance
The following attestation bundles were made for observr-0.5.0.tar.gz:
Publisher:
publish-py.yml on ydking0911/observr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
observr-0.5.0.tar.gz -
Subject digest:
9a6ed8409d3091710bcbb1180921b7d988a940306da0ea0257c185c032089d4c - Sigstore transparency entry: 1566028438
- Sigstore integration time:
-
Permalink:
ydking0911/observr@be7674c5f3e74f4c64caf2d27f70baf035e79fca -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/ydking0911
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-py.yml@be7674c5f3e74f4c64caf2d27f70baf035e79fca -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10f4c0f310a127e03fdea6f2c662ef10ba5dd91071b788c3d831ecec003e5347
|
|
| MD5 |
a9e2510be335c5d38bfa528abd08fe9a
|
|
| BLAKE2b-256 |
90b724dc8f7b8f42bbe4b4700fe7c5e4fb98966614ff93a744e793514742572b
|
Provenance
The following attestation bundles were made for observr-0.5.0-py3-none-any.whl:
Publisher:
publish-py.yml on ydking0911/observr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
observr-0.5.0-py3-none-any.whl -
Subject digest:
10f4c0f310a127e03fdea6f2c662ef10ba5dd91071b788c3d831ecec003e5347 - Sigstore transparency entry: 1566028478
- Sigstore integration time:
-
Permalink:
ydking0911/observr@be7674c5f3e74f4c64caf2d27f70baf035e79fca -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/ydking0911
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-py.yml@be7674c5f3e74f4c64caf2d27f70baf035e79fca -
Trigger Event:
workflow_dispatch
-
Statement type: