Skip to main content

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

Gemini calls via the google-genai SDK are auto-traced once verica.init() runs (no extra setup).

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

verica_observability-0.1.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

verica_observability-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file verica_observability-0.1.2.tar.gz.

File metadata

  • Download URL: verica_observability-0.1.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for verica_observability-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c6cd30356f634197bc58743e80dc10d584479e48db89ab9c2547a94885a0c93b
MD5 0687dac5b75c7d652534ca6b3b6d9cb8
BLAKE2b-256 d88bd0d9adb8252201079b72a92758d878b2df8d6db9fb413e886786c526db30

See more details on using hashes here.

File details

Details for the file verica_observability-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for verica_observability-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a54a28e8f60498a765f9177642efa84921c9e66f524cb126fb57414070b0103a
MD5 4cb57c2f03adeb01996bfe623198fa59
BLAKE2b-256 fed2aa7e8b99f9b883c2fa13363640ce1f851f9bbcbfaf274382edcfc9f45152

See more details on using hashes here.

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