Skip to content

pg_otel_tracer

Rust based Postgres extension that adds query lifecycle events to OTEL traces.

pg_otel_tracer · Rust based Postgres extension that adds query lifecycle events to OTEL traces.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101591pg_otel_tracerpg_otel_tracer0.1.0STATUnknownRust

Usage

Sources:

pg_otel_tracer — OpenTelemetry tracing extension for PostgreSQL. Extracts W3C traceparent from SQL comments and exports query lifecycle spans via OTLP/HTTP. Use it when collecting or interpreting the corresponding PostgreSQL statistics. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION pg_otel_tracer;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Requirements and Caveats

  • The reviewed control file declares default version 0.1.0.
  • The control file marks the extension as non-relocatable.
  • The control file requires a superuser for installation.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader