Skip to main content

Pulse Python SDK for tracing LLM providers

Project description

pulse-trace-sdk

Official Python SDK for Pulse trace ingestion. The public observe() API records supported LLM calls and sends them to Pulse as OTLP HTTP JSON at POST /v1/traces — one llm_call span per provider request plus tool_use spans for tool calls, carrying provider, model, token, cost, and session attributes.

Install

pip install pulse-trace-sdk

Quick Start

from openai import OpenAI
from pulse_sdk import init_pulse, observe, Provider

init_pulse({"api_key": "pulse_sk_..."})

client = observe(OpenAI(api_key="your-openai-key"), Provider.OPENAI)

client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello"}],
)

Docs

Full docs: https://www.usepulse.dev/docs/

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

pulse_trace_sdk-0.2.8.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

pulse_trace_sdk-0.2.8-py3-none-any.whl (1.4 kB view details)

Uploaded Python 3

File details

Details for the file pulse_trace_sdk-0.2.8.tar.gz.

File metadata

  • Download URL: pulse_trace_sdk-0.2.8.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pulse_trace_sdk-0.2.8.tar.gz
Algorithm Hash digest
SHA256 32a87c7e6248d3583cb20b00bcf4f72b0d5e4a1a30345bdbb8aeb920272c84f9
MD5 85c94468959326a9671f8bd23473aa8c
BLAKE2b-256 4f06fb9cebfd7a14d07220780222727eca6cd1e6b118590b64e9609871b42836

See more details on using hashes here.

Provenance

The following attestation bundles were made for pulse_trace_sdk-0.2.8.tar.gz:

Publisher: release.yml on EK-LABS-LLC/trace-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pulse_trace_sdk-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for pulse_trace_sdk-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b36c3e636e89501cf1aa1950acb764e96a56620f07840f61ef418b86bab320cc
MD5 d37fbc5911dbe880c839eba82f6e2513
BLAKE2b-256 5f0088ff4782585452506238e44060e519a9df1c834a76fc8e5e3ea0ad68c07c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pulse_trace_sdk-0.2.8-py3-none-any.whl:

Publisher: release.yml on EK-LABS-LLC/trace-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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