Skip to main content

respan-instrumentation-qdrant

Respan instrumentation for synchronous and asynchronous qdrant-client operations. It emits canonical Respan task spans for collection management, point writes, payload updates, retrieval, filtering, vector queries, facets, snapshots, and cluster administration.

Install

pip install respan-ai respan-instrumentation-qdrant qdrant-client

Quickstart

from qdrant_client import QdrantClient, models
from respan import Respan, workflow
from respan_instrumentation_qdrant import QdrantInstrumentor

respan = Respan(instrumentations=[QdrantInstrumentor()])


@workflow(name="qdrant_local_query_workflow")
def run_query():
    client = QdrantClient(":memory:")
    client.create_collection(
        "docs",
        vectors_config=models.VectorParams(
            size=3,
            distance=models.Distance.COSINE,
        ),
    )
    client.upsert(
        "docs",
        points=[models.PointStruct(id=1, vector=[0.1, 0.2, 0.3])],
    )
    return client.query_points(
        "docs",
        query=[0.1, 0.2, 0.3],
        limit=1,
    )


print(run_query())
respan.shutdown()

QdrantInstrumentor(capture_content=False) keeps operation names, status, and database attributes while omitting request and response bodies. Activation and deactivation are idempotent, and instrument() / uninstrument() aliases are also available.

See respan-example-projects/python/tracing/qdrant for collection, point, query, async, and deterministic error examples.

Metadata

Release files for respan-instrumentation-qdrant 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-qdrant 0.1.1
File Size Uploaded
respan_instrumentation_qdrant-0.1.1.tar.gz 8.4 kB Details

Built distribution (wheel)

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

Total release size: 18.2 kB

Release files / respan_instrumentation_qdrant-0.1.1.tar.gz

Download URL respan_instrumentation_qdrant-0.1.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c18f11dcb84fb8b9bfd54bf0f5eab1d585f3c8d4232fc347f2d30f7cd5ccc835
BLAKE2b-256 checksum
How to use checksums
787fced8ea073ba890e623cba2e2ba55f3ad4da40c2e349dae86c853f9afa578
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_qdrant-0.1.1-py3-none-any.whl

Download URL respan_instrumentation_qdrant-0.1.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdf7c88f4ac5f676038a2be2bb686e998cc39a0629bf4b9511e4e7a624b3dd22
BLAKE2b-256 checksum
How to use checksums
074e6f62ad2f31b56f0406e317ffaadc458f867fb2dd2cdc4f3a0aa43e752240
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