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.
Install
Section titled “Install”pip install "pixeltable[otel]"The otel extra installs opentelemetry-instrumentation-pixeltable, the OTLP exporters and opentelemetry-instrumentation-fastapi.
Set up
Section titled “Set up”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.
What you get
Section titled “What you get”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.
Limits
Section titled “Limits”- 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-pixeltable0.2.0.
- Send OpenTelemetry: the endpoint and the headers cetra expects.
- Traces: read the trace as a tree and a timeline.