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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

respan_instrumentation_qdrant-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file respan_instrumentation_qdrant-0.1.0.tar.gz.

File metadata

  • Download URL: respan_instrumentation_qdrant-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 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

Hashes for respan_instrumentation_qdrant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5be1cb0420f781fe2dc83970e8e5c94dcc37b50291e6ca06679325914617eaf2
MD5 cec9b8e17d845299491a50791640bffc
BLAKE2b-256 d53d226773d970821a215b0b23cae22078858bce6f337ab494e66c7f2e4a0ed8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page