Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Pixeltable

Pixeltable (the pixeltable package on PyPI) exports OpenTelemetry spans over OTLP through its OpenTelemetry integration. This page points that export at cetra. It is setup only: the run was not completed, so no Pixeltable span was observed against cetra.

Terminal window
pip install "pixeltable[otel]"

The otel extra installs opentelemetry-instrumentation-pixeltable, the OTLP exporters and opentelemetry-instrumentation-fastapi.

In Pixeltable’s config file (config.toml under PIXELTABLE_HOME), point the [otel] section at cetra:

[otel]
exporter_otlp_endpoint = "http://localhost:8080"
exporter_otlp_headers = "Authorization=Bearer sk-cetra-…"

The section’s other keys: exporter_otlp_protocol (http/protobuf by default), span_level (info by default; debug adds row and UDF spans), logs (false by default) and metrics.

Two alternatives set the endpoint: the init() call of opentelemetry-instrumentation-pixeltable, which takes endpoint, protocol, span_level, metrics and logs, appends /v1/traces itself (pass the base URL) and must run before your first Pixeltable operation; and the OTEL_EXPORTER_OTLP_ENDPOINT variable.

Not verified: no Pixeltable run reached cetra for this page. Expected from the package’s design: Pixeltable’s own spans for table operations and UDF calls, with OpenInference spans for model calls nested under the UDF spans when OpenInference is installed.

  • Not run: the run for this page could not start Pixeltable’s embedded Postgres in its sandbox, and no spans were received.
  • Not checked: whether the header value above is read as written. Check the first trace in cetra’s UI.
  • This page was written against pixeltable 0.7.24 and opentelemetry-instrumentation-pixeltable 0.2.0.