mstrYoda

mstrYoda / pgtrace

Public

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

10
0
100% credibility
Found May 15, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

An OpenTelemetry tracing extension for PostgreSQL that captures trace context from SQL comments and exports spans for query planning, execution, run phases, and wait events to monitoring tools like Jaeger.

How It Works

1
๐Ÿ” Discover the tool

You hear about a helpful add-on that shows exactly what happens step-by-step when your app fetches or saves information.

2
๐Ÿš€ Start the demo

Fire up the ready-made example package, which includes a sample app and viewer, to see it working right away.

3
๐Ÿ“ค Send a test request

From the sample app, make a simple action like adding a user, and watch it connect through the tool.

4
๐Ÿ“ˆ View the full picture!

Open the web viewer and see a beautiful map of every moment in your request's journey, lighting up like magic.

5
๐Ÿ”ง Add to your setup

Follow easy steps to install it alongside your main information storage system.

6
โš™๏ธ Fine-tune the detail

Choose how much to track so it runs smoothly without slowing anything down.

๐ŸŽ‰ Everything traces perfectly

Now your app's actions reveal their inner workings, helping you quickly find and fix any hold-ups.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is pgtrace?

pgtrace is a Rust-based PostgreSQL extension that adds OpenTelemetry spans to query lifecycles, pulling W3C traceparent from SQL comments injected by your app. It traces planner optimization, execution start/run/end, and wait events, batch-exporting them via OTLP/HTTP to collectors like Jaeger or Tempo. Developers get end-to-end visibility from app requests to Postgres internals without blocking queries.

Why is it gaining traction?

Runtime SQL controls let you toggle tracing, set sampling rates (e.g., 0.01 for prod), and monitor queue healthโ€”no config restarts needed. Docker Compose quickstart launches Postgres 16, OTEL collector, Jaeger UI, and a Go demo API in one command, proving rust postgres client integration instantly. Non-blocking exports with drop-on-overflow keep DB performance intact.

Who should use this?

Backend engineers tracing rust postgres async connections, rust postgres sqlx queries, or rust postgres orm setups in distributed systems. SREs debugging slow rust postgresql examples via rust github workflow in rust github ci pipelines with rust github actions cache.

Verdict

Early alpha (10 stars, 1.0% credibility) but battle-ready docs and Docker demo make it worth a spin for rust github trending OTEL fansโ€”test with `docker compose up` before committing as a rust github dependency. Needs more eyes for pg13-15 polish and gRPC support.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.