Skip to main content

Respan instrumentation plugin for Pipecat

Project description

respan-instrumentation-pipecat

Respan instrumentation plugin for Pipecat. Wraps OpenInference's upstream Pipecat instrumentor and translates Pipecat spans locally into the Respan tracing shape automatically.

Configuration

1. Install

pip install respan-instrumentation-pipecat

2. Set Environment Variables

Variable Required Description
RESPAN_API_KEY Yes Your Respan API key. Authenticates both proxy and tracing.
RESPAN_BASE_URL No Defaults to https://api.respan.ai/api.

Quickstart

import os

from respan import Respan
from respan_instrumentation_pipecat import PipecatInstrumentor

respan = Respan(
    api_key=os.environ["RESPAN_API_KEY"],
    base_url=os.getenv("RESPAN_BASE_URL", "https://api.respan.ai/api"),
    instrumentations=[PipecatInstrumentor()],
)

# Create PipelineTask instances after Respan activates the instrumentor.
# Pipecat pipeline, LLM, STT, TTS, and tool spans are captured automatically.

respan.flush()

Further Reading

See the Respan example projects for runnable scripts.

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

respan_instrumentation_pipecat-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for respan_instrumentation_pipecat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cbb49ed70da02c4aa43233ebeb6d3b3b8a612db310bec2b6541bf354e05adecd
MD5 2c4defebb3407217dea9065f9d8577ec
BLAKE2b-256 c9cb756111e175c307aed6e72d41715598035f504fbf4acb99f2aadea3cd36b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for respan_instrumentation_pipecat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f50b725940ee72c94436a1f16b8fd3e6dd734cf455868dc057a6830d4ebb573c
MD5 fa5fe364bd4c6e4e94c8697b540b93c7
BLAKE2b-256 c0ea1d98c11d7715579e0085f237f600893aa8116260ac8e654b706b6b8220c8

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