opentelemetry-instrumentation-lancedb
OpenTelemetry Lancedb instrumentation
What it is and what it does
This package wraps the official LanceDB library to automatically emit OpenTelemetry traces for every client-side call. It integrates with the OpenTelemetry ecosystem, meaning traces are formatted according to semantic conventions and can be exported to any backend that accepts OpenTelemetry signals—Jaeger, Datadog, New Relic, or any other collector.
You install it, call `LanceInstrumentor().instrument()` once at startup, and then all subsequent LanceDB operations are traced without further code changes. It depends on opentelemetry-api, opentelemetry-instrumentation, and two semantic-conventions packages to define how database operations are represented in traces.
Use it for:
- Debug slow LanceDB queries by viewing end-to-end traces in your observability backend.
- Monitor production vector database operations and correlate them with application traces.
- Troubleshoot connection issues or failures by inspecting trace spans and error attributes.
- Measure LanceDB latency distribution across your application's request lifecycle.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds distributed tracing instrumentation for LanceDB client calls, automatically capturing traces compatible with OpenTelemetry collectors and backends.
Yes, if you are already using OpenTelemetry and LanceDB in production. The package is actively maintained, has no known vulnerabilities, and low install friction. Install only if you have an OpenTelemetry exporter already configured; the instrumentation alone produces no output without a collector backend.
Install
opentelemetry-instrumentation-lancedb on PyPI
pip
pip install opentelemetry-instrumentation-lancedbuv
uv add opentelemetry-instrumentation-lancedbpoetry
poetry add opentelemetry-instrumentation-lancedbInstalling opentelemetry-instrumentation-lancedb
Before you install
Low friction install with four lightweight OpenTelemetry dependencies. Actively maintained as of 4 days ago with recent commits and a substantial upstream repository.
License in practice
Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.
Quickstart
pip install opentelemetry-instrumentation-lancedb
from opentelemetry.instrumentation.lancedb import LanceInstrumentor
LanceInstrumentor().instrument()
Requires Python 3.10 or later; requires an OpenTelemetry collector or exporter to be configured separately to actually export traces.
Verify before relying
- Whether instrumentation works with all LanceDB versions or only specific releases.
- What trace data is captured (query parameters, latency, errors) and how detailed the semantic conventions are.
- Whether the package supports async LanceDB operations or only synchronous calls.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,215,016/month — #1,647 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_lancedb-0.62.3-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-qdrantAdds distributed tracing to Qdrant vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-milvusAdds distributed tracing to Milvus vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-chromadbAdds distributed tracing to Chroma vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-weaviateAdds distributed tracing to Weaviate vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pineconeAdds distributed tracing to Pinecone vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-marqoAdds OpenTelemetry tracing to client-side calls…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
lancedbLanceDB is a Python SDK for connecting to and…
permissive · top 5,000 on PyPI
lance-namespaceProvides an abstract interface and plugin…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-botoAdds distributed tracing to AWS SDK (Boto)…
permissive · top 5,000 on PyPI