otel_postgres_tracing
postgres_otel_api · Query and utility-statement tracing through otel_api
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102137 | otel_postgres_tracing | postgres_otel_api | 0.1.1 | STAT | PostgreSQL | C |
PostgreSQL · 14, 15, 16, 17, 18
| Relationships | |
|---|---|
| Requires | otel_api |
Usage
Sources:
- README.md
- otel_postgres_tracing/otel_postgres_tracing–0.1.1.sql
- otel_postgres_tracing/otel_postgres_tracing.c
- otel_postgres_tracing/otel_postgres_tracing.control
otel_postgres_tracing instruments query execution and utility statements through PostgreSQL hooks, using the shared otel_api provider. An exporter is needed to persist or send the produced spans.
Core Workflow
Operational Boundaries
The library installs hooks when loaded. Cluster preload is the recommended path; per-session loading is best-effort and affects only that backend. The versioned SQL contains no user-facing SQL objects, so CREATE EXTENSION is optional bookkeeping, not activation. Preload ordering with the API is not significant in this revision.
The project is pre-release: wire and file formats may change. Stock PostgreSQL 14+ supports the GUC/sqlcommenter fallback; protocol-header propagation and some error/parallel-worker behavior require the companion patched PostgreSQL. Do not assume those patches are present on an ordinary server. Append libraries to existing preload entries and restart for cluster-wide enablement. Protect traces because statement text and attributes may contain sensitive data.