OpenTelemetry instrumentation for Milvus vector database
Project description
traceAI-milvus
OpenTelemetry instrumentation for Milvus vector database.
Installation
pip install traceAI-milvus
Quick Start
from fi_instrumentation import register
from traceai_milvus import MilvusInstrumentor
from pymilvus import MilvusClient
trace_provider = register(project_name="my-rag-app")
MilvusInstrumentor().instrument(tracer_provider=trace_provider)
client = MilvusClient("milvus.db")
# All operations are traced
client.search(
collection_name="documents",
data=[[0.1, 0.2, ...]],
limit=5
)
client.insert(collection_name="documents", data=[...])
Instrumented Operations
| Operation | Span Name | Description |
|---|---|---|
search |
milvus search |
Vector similarity search |
query |
milvus query |
Scalar query with filters |
insert |
milvus insert |
Insert vectors |
upsert |
milvus upsert |
Upsert vectors |
delete |
milvus delete |
Delete vectors |
get |
milvus get |
Get vectors by ID |
create_collection |
milvus create_collection |
Create collection |
drop_collection |
milvus drop_collection |
Drop collection |
License
Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
traceai_milvus-0.1.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file traceai_milvus-0.1.0.tar.gz.
File metadata
- Download URL: traceai_milvus-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
952adedeab1c863eaf6b738dfe5e05ad76c32d0f3049311a6db5df50ae4c817c
|
|
| MD5 |
0ce6899e503c0255a18d206060192948
|
|
| BLAKE2b-256 |
c6abd920940b1a623c71bb2d5c377b08a57855d6ae83fa353b1ca6093adbcab6
|
File details
Details for the file traceai_milvus-0.1.0-py3-none-any.whl.
File metadata
- Download URL: traceai_milvus-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d1a619096563fb8b2a7456ce39a995cd7fd103502161ce3907658e66e27bbbe
|
|
| MD5 |
0d09a2bf1b7971c804802f9a8266137f
|
|
| BLAKE2b-256 |
81fe997fed464472b53fbbedf705c66800977f99ca69dd4ca497725b87b9c9d4
|