Framework-agnostic LLM observability for Volra agents
Project description
volra-observe
Framework-agnostic LLM observability for Volra agents.
Install
pip install volra-observe
Quick Start
import volra_observe
# Auto-patches OpenAI and Anthropic SDKs, starts Prometheus server on :9101
volra_observe.init(port=9101)
Metrics Exposed
| Metric | Type | Labels |
|---|---|---|
volra_llm_tokens_total |
Counter | model, type (input/output) |
volra_llm_cost_dollars_total |
Counter | model |
volra_llm_request_duration_seconds |
Histogram | model, status |
volra_llm_errors_total |
Counter | model, error_type |
volra_tool_calls_total |
Counter | tool_name |
Manual Instrumentation
from volra_observe import track_llm, llm_context
# Decorator
@track_llm(model="gpt-4o")
def call_llm(prompt):
return client.chat.completions.create(model="gpt-4o", messages=[...])
# Context manager
with llm_context(model="claude-sonnet-4-20250514") as ctx:
response = anthropic.messages.create(...)
ctx["response"] = response
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
volra_observe-0.1.0.tar.gz
(5.8 kB
view details)
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 volra_observe-0.1.0.tar.gz.
File metadata
- Download URL: volra_observe-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
382506533dd525fb0401a18f6555e158ab7ed042b65c42fcec7929f7de31019a
|
|
| MD5 |
97b61ea4a6c8dd25bd48b2ac1f8b8f9b
|
|
| BLAKE2b-256 |
927f4a666b6b96ecdeff8729bac9594be209ecaad63147858cdd7f9380d31044
|
File details
Details for the file volra_observe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: volra_observe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1bd7748492f5194ff2c601d1f42967f1866578678f6798097b5df79222fa7d8
|
|
| MD5 |
a5f8315f01b4efb0a150f4d20d049b8f
|
|
| BLAKE2b-256 |
513ffab06b7a9fbd1599309f2cd256041c3817e97960176901df215718b26219
|