respan-instrumentation-weaviate
Respan instrumentation for the Weaviate Python client v4. It emits canonical task spans for synchronous and asynchronous collection lifecycle, data, reference, vector and keyword query, aggregate, config, batch, and tenant operations.
Install
pip install respan-ai respan-instrumentation-weaviate "weaviate-client>=4.22.0,<5"
Quickstart
import weaviate
from weaviate.classes.config import Configure
from respan import Respan, workflow
from respan_instrumentation_weaviate import WeaviateInstrumentor
respan = Respan(instrumentations=[WeaviateInstrumentor()])
@workflow(name="weaviate_vector_query_workflow")
def run_query():
client = weaviate.connect_to_local()
collection = client.collections.create(
"RespanDocs",
vector_config=Configure.Vectors.self_provided(),
)
collection.data.insert(
{"text": "Respan traces vector-store operations."},
vector=[0.1, 0.2, 0.3],
)
result = collection.query.near_vector(
near_vector=[0.1, 0.2, 0.3],
limit=1,
)
client.close()
return result
print(run_query())
respan.shutdown()
Pass capture_content=False to omit operation arguments and results while
retaining names, status, and database attributes. Activation/deactivation and
the instrument() / uninstrument() aliases are idempotent.
The adapter targets weaviate-client>=4.22.0,<5 and its v4 collection API.
Generative search calls are left to an LLM-specific integration because they require chat
semantics rather than vector-store task semantics.
See respan-example-projects/python/tracing/weaviate for runnable sync, async,
batch, aggregate, query, mutation, and deterministic error examples.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file respan_instrumentation_weaviate-0.1.0.tar.gz.
File metadata
- Download URL: respan_instrumentation_weaviate-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.3.2 CPython/3.13.12 Linux/6.17.0-35-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08b6a12dac1eb135a441719fe8ba4b435a34765b07d15e4f12c9d80516a7d2a7
|
|
| MD5 |
f1166527feba0e34733fc274eec89b4d
|
|
| BLAKE2b-256 |
df31f674c0ce49fe7f1f54b821ff332cee694a708799fdbed970f3237027e8de
|