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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file respan_instrumentation_together-0.1.0.tar.gz.
File metadata
- Download URL: respan_instrumentation_together-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e914dda1081d9c4aa818d0b300be00102e0ab0894d478676d05573b8f01fa0
|
|
| MD5 |
fdeb0ce4b9679899b82ba75b3b96171a
|
|
| BLAKE2b-256 |
7c8ab2a43f0f2030f13a17033e101546d67ab525a7c7baf11fa2937ccbae9604
|
File details
Details for the file respan_instrumentation_together-0.1.0-py3-none-any.whl.
File metadata
- Download URL: respan_instrumentation_together-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
557e09986b140a6086b210b5913eb726b37d771d795a751c2df4596c9228c6a2
|
|
| MD5 |
13bca971d79ca20934ddcc809401645f
|
|
| BLAKE2b-256 |
e4f82776b4ec9f60c36e3d1e5c9dfef15d54c7e2c578087cc5046a48f356d547
|