Skip to main content

RabbittWatch AI Observability tracing SDK for Python

Project description

RabbittWatch AI Observability Python SDK

A lightweight Python SDK to track LLM costs, tokens, latencies, error states, and distributed traces in RabbittWatch.

Installation

pip install .

Basic Usage

from rabbittwatch.client import RabbittWatchAI

rw_ai = RabbittWatchAI(
    api_key="rw_live_xxxxx",
    environment="prod",
    service_name="customer-support"
)

# Wrapping a call
response = rw_ai.trace(
    name="agent.answer",
    provider="openai",
    model="gpt-4o",
    input="Hello!",
    fn=lambda: openai_client.chat.completions.create(
        model="gpt-4o",
        messages=[{"role": "user", "content": "Hello!"}]
    )
)

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

rabbittwatch_ai_observability-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

rabbittwatch_ai_observability-0.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file rabbittwatch_ai_observability-0.1.0.tar.gz.

File metadata

File hashes

Hashes for rabbittwatch_ai_observability-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3996ff42d787fa0a49db678e146fb1e40d6a0747c472aeec227c53feb1d1c9d5
MD5 3f2e644da033736df8939a5e8e29855b
BLAKE2b-256 46517754fb335f4bb14e7fe2feeb2be38e17beab772a2d5922f0b9a9900d9c3e

See more details on using hashes here.

File details

Details for the file rabbittwatch_ai_observability-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rabbittwatch_ai_observability-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61a72c1f526fa670fc4be4e279b70e58d6fe77c5fd0b357c0f1ea0352c644068
MD5 2ca9aa6736c68fdf6468c9b70086abab
BLAKE2b-256 e0b8763ceb572b3736a3360ede7decd213c0107ce66e76c1bd1f112be8a14ec4

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