Skip to main content

Respan instrumentation plugin for the Together AI Python SDK

Project description

respan-instrumentation-together

Respan instrumentation plugin for the official Together AI Python SDK.

The package patches the generated Together SDK resources and emits canonical Respan spans through the active OTEL pipeline. It captures sync calls, async calls, streaming chat and text completions, chat tool definitions, model tool calls, text completions, embeddings, rerank requests, image generations, and token usage when Together returns it.

Installation

pip install respan-ai respan-instrumentation-together together

Usage

from together import Together
from respan import Respan
from respan_instrumentation_together import TogetherInstrumentor

respan = Respan(instrumentations=[TogetherInstrumentor()])
client = Together()

response = client.chat.completions.create(
    model="openai/gpt-oss-20b",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(response.choices[0].message.content)
respan.flush()

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_together-0.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

respan_instrumentation_together-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for respan_instrumentation_together-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c2e914dda1081d9c4aa818d0b300be00102e0ab0894d478676d05573b8f01fa0
MD5 fdeb0ce4b9679899b82ba75b3b96171a
BLAKE2b-256 7c8ab2a43f0f2030f13a17033e101546d67ab525a7c7baf11fa2937ccbae9604

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for respan_instrumentation_together-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 557e09986b140a6086b210b5913eb726b37d771d795a751c2df4596c9228c6a2
MD5 13bca971d79ca20934ddcc809401645f
BLAKE2b-256 e4f82776b4ec9f60c36e3d1e5c9dfef15d54c7e2c578087cc5046a48f356d547

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