pip install opentelemetry-instrumentation-pixeltable Copy PIP instructions
Translates Pixeltable's instrumentation hooks into OpenTelemetry spans and metrics. Instrumentation is opt-in: Pixeltable itself never imports OpenTelemetry or activates telemetry on its own.
from opentelemetry.instrumentation.pixeltable import PixeltableInstrumentor PixeltableInstrumentor().instrument() # uses the global providers # or: PixeltableInstrumentor().instrument(tracer_provider=my_tp, meter_provider=my_mp) The standard opentelemetry-instrument CLI discovers and activates it automatically via its entry point.
To build providers and an OTLP exporter from Pixeltable's [otel] config (or the standard OTEL_EXPORTER_OTLP_* environment variables), call init() once at startup (requires the pixeltable[otel] extra):
import opentelemetry.instrumentation.pixeltable as pxt_otel pxt_otel.init(endpoint='http://localhost:4318') Configuration is read from the database's [[pixeltable.database]] entry (db_exporter_otlp_endpoint, db_exporter_otlp_protocol), then the standard OTEL_EXPORTER_OTLP_* environment variables, then the [otel] section of Pixeltable's config (~/.pixeltable/config.toml).
This package emits Pixeltable's own operation, execution, and UDF spans. It does not capture per-provider token usage or cost. To add rich provider spans (OpenAI, Anthropic, etc.), install a dedicated GenAI instrumentor alongside this one:
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.




