Two-line LLM tracing for Verica: init(token) and your OpenAI/Anthropic calls land as evaluable traces.
Project description
verica-observability
Two-line LLM tracing for Verica: your OpenAI/Anthropic calls land as evaluable traces.
Install
pip install verica-observability
Use
import verica
verica.init(token=os.environ["VERICA_TOKEN"])
# Import AFTER init so the client is patched.
from openai import OpenAI
Serverless
Call verica.flush() (or verica.shutdown()) before the runtime freezes so
the span batch is exported.
Options
| Option / env var | Default | Notes |
|---|---|---|
token / VERICA_TOKEN |
(required) | ingest-scoped API token |
capture_content / VERICA_CAPTURE_CONTENT |
true |
send prompt/response content |
conversation_id |
(none) | stamps gen_ai.conversation.id |
service_name / OTEL_SERVICE_NAME |
app |
resource service.name |
debug / VERICA_DEBUG |
false |
log export errors |
Fail-open by design: if Verica is unreachable or the token is invalid, spans are
dropped and your app is never affected. Export errors are silent unless debug
is on.
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 verica_observability-0.1.1.tar.gz.
File metadata
- Download URL: verica_observability-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd12034d2c4ff90ff44b6a8e7e6c9c186cbcb2102cece374688df9bd86c2399d
|
|
| MD5 |
331afd370182cdbdd2633574829a59c2
|
|
| BLAKE2b-256 |
a270d5eb7a8d1236f21a34312e8fcd1ae03a864099034a0d6066f275750a3f83
|
File details
Details for the file verica_observability-0.1.1-py3-none-any.whl.
File metadata
- Download URL: verica_observability-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
153ddc207796fcb1d72baded8677247a8fb13214b59636ac2f7e80320b84b82c
|
|
| MD5 |
2e319ffb749d660628703bca2dc7c556
|
|
| BLAKE2b-256 |
667bee5e3b345b789db9736f329f2d190ae099e14137eab3a1ea44d3944240ca
|