traceAI-writer
OpenTelemetry instrumentation for the Writer Python SDK
(writer-sdk, import writerai).
pip install traceAI-writer
from fi_instrumentation import register
from traceai_writer import WriterInstrumentor
from writerai import Writer
WriterInstrumentor().instrument(tracer_provider=register(project_name="my-project"))
client = Writer()
client.chat.chat(model="palmyra-x5", messages=[{"role": "user", "content": "Hello"}])
With fi-instrumentation-otel auto-instrumentation the writer integration is enabled whenever
writerai is installed.
What is traced
chat.chat (writer.chat) and completions.create (writer.text_completion), sync and async,
streaming or not. Each is an LLM span with gen_ai.provider.name = writer, the request model,
temperature / top_p / max_tokens / stop, the response model and id, finish reasons and token usage
when the response carries it. Tool calls the model makes are recorded on the output message.
- Only the outermost SDK call is traced:
chat.stream(),with_raw_responseandwith_streaming_responseproduce one span, not several. - Streams end on exhaustion, error or
close(); an early close is markedwriter.stream.incomplete. This includes leaving achat.stream()helper block early (the helper closes the underlying response) and a stream that is dropped without being closed. - Exceptions are re-raised unchanged and recorded as
ERRORwitherror.type(the class name); the message is never exported. - Inputs and outputs follow the
TraceConfighide settings. Only plain-text conversations are captured asinput.value; multimodal parts, and Knowledge Graph / web-search source documents returned with a response, are never exported.
Supported SDK range: writer-sdk >= 2.0.0, < 4.
Metadata
Release files for traceAI-writer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| traceai_writer-0.1.0.tar.gz | 6.1 kB | Without provenance | Details for traceai_writer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| traceai_writer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for traceai_writer-0.1.0-py3-none-any.whl |
Total release size: 12.9 kB
Release files / traceai_writer-0.1.0.tar.gz
| Download URL | traceai_writer-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78c6f6d96d3347e7be6beff8253a8fc1f41d42facf40f8c94d9b14a2db568225
|
|
BLAKE2b-256 checksum How to use checksums |
4673fcead8731ec904cbd21b90a816dfc800bf1a3f61100b1113deaebef631a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / traceai_writer-0.1.0-py3-none-any.whl
| Download URL | traceai_writer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcb7fbfa5164858e9f30fb6f4a51f512e33526338aa39facc91d62496d3b8dbd
|
|
BLAKE2b-256 checksum How to use checksums |
428d5038672249d41f7c8df14cecbd535b0538b99028c3f69b57c457934a78fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for traceAI-writer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.