Skip to main content

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.23.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.23.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.

Metadata

Release files for respan-instrumentation-weaviate 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for respan-instrumentation-weaviate 0.1.1
File Size Uploaded
respan_instrumentation_weaviate-0.1.1.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for respan-instrumentation-weaviate 0.1.1
File Interpreter ABI Platform
respan_instrumentation_weaviate-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / respan_instrumentation_weaviate-0.1.1.tar.gz

Download URL respan_instrumentation_weaviate-0.1.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f4f3f36052794e78dec216a108943a66c1a3b56cd99812e15cc2af6e6e0b7b47
BLAKE2b-256 checksum
How to use checksums
cbaeeb7f12e7ad38869e5f168f0a3a7edfc7d4e8f2774165514420cfe2627504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / respan_instrumentation_weaviate-0.1.1-py3-none-any.whl

Download URL respan_instrumentation_weaviate-0.1.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b5ffec2f77119277ec950aeb8a0859de0fccd2c835efad2820882c67fa6d2e8
BLAKE2b-256 checksum
How to use checksums
886cd4f2879f860140b7072bd73434c550886715fe5c219ddd368432abd94703
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page