Skip to main content

Independent OpenTelemetry SDK for AI agents (Anthropic, OpenAI, Ollama)

Project description

puvinoise-sdk

Independent OpenTelemetry SDK for AI agents. Supports Anthropic Claude, OpenAI, Ollama, and other LLM providers with tracing and observability.

Install

pip install puvinoise-sdk

Optional provider extras:

pip install puvinoise-sdk[anthropic]
pip install puvinoise-sdk[openai]
pip install puvinoise-sdk[all]

Quick start

from puvinoise import bootstrap, run_with_trace

bootstrap()  # Configure via env: CUST_AGENT_NAME, CUST_LLM_PROVIDER, PUVINOISE_TENANTID, PUVINOISE_AGENTACCESSKEY, PUVINOISE_END_POINT_URL

with run_with_trace("my-agent-run"):
    # Your agent / LLM calls
    pass

Environment

The SDK reads these variables from the environment (e.g. from a .env file):

Variable Description
CUST_AGENT_NAME Agent/service name (e.g. my-agent-system). Internally the SDK uses the variable puvicustagentname for this value to avoid name conflicts with customer agent code.
CUST_LLM_PROVIDER Connected integration / LLM provider (e.g. openai, anthropic, ollama); mapped from your tenant’s connected integration
PUVINOISE_TENANTID Tenant ID for multi-tenant isolation (from your PUViNoise organization)
PUVINOISE_AGENTACCESSKEY Agent access key for authenticating with the OTLP endpoint (sent as Bearer token)
PUVINOISE_END_POINT_URL OTLP collector URL (e.g. http://host:4318; /v1/traces is appended if missing)

Example .env:

CUST_AGENT_NAME=my-agent-system
CUST_LLM_PROVIDER=openai
PUVINOISE_TENANTID=your-tenant-id
PUVINOISE_AGENTACCESSKEY=your_agent_access_key
PUVINOISE_END_POINT_URL=http://localhost:4318

Telemetry emitted

The SDK sends all env-derived parameters to the collector so the dashboard can display and filter by them:

  • Resource attributes (on every span): service.name (from CUST_AGENT_NAME), tenant.id (from PUVINOISE_TENANTID), puvinoise.llm_provider (from CUST_LLM_PROVIDER).
  • Span attributes on agent.run: agent.name, agent.run_id, tenant.id, puvinoise.llm_provider, llm.provider.

The backend and dashboard use these to scope traces by tenant, filter by agent name and LLM provider, and show tenant ID and provider in the trace list and detail views.

License

Proprietary – PUVI LABS PRIVATE LIMITED

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

puvinoise_sdk-0.2.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

puvinoise_sdk-0.2.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file puvinoise_sdk-0.2.3.tar.gz.

File metadata

  • Download URL: puvinoise_sdk-0.2.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for puvinoise_sdk-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9b50857aa1492ae27a0f5e7564935df2c90b8dbad38b3dc7f05ef3992e5b2038
MD5 dc4fa9df915d6556594ff0ff47ad4720
BLAKE2b-256 ea8e1691d67c8f22ed0161e9811b69c6c784e9597f2e9bf315fa2a31dc6394a1

See more details on using hashes here.

File details

Details for the file puvinoise_sdk-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: puvinoise_sdk-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for puvinoise_sdk-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7497e8d7733c5968e553b163615d014f9ee5a5fd575839c8b523591661cc01
MD5 3eceaa97158d0b16e4d14111c9a074cb
BLAKE2b-256 fd5b99bdb0c471c601bc389b3d7062bbccfe72660b6f6c9194501e0ec2f48f7b

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