LightState Registry / Verified X Builder Use Cases / Engineering & DevOps / devops-opentelemetry-trace-to-sql-slow-log-correlator
⚡ Pulse Score 79/100
OpenTelemetry Trace ID to PostgreSQL Slow-Query Correlator
Propagate `traceparent` SQL comments from API handlers into Postgres so slow queries map 1:1 to frontend user sessions.
⚡ 1-Click Agent & Developer Install
Zero Auth · Ready for Grok Bot, Claude Code & Cursornpx lightstate inspect devops-opentelemetry-trace-to-sql-slow-log-correlator
Copy-Paste System Prompt / Routine Blueprint:
Execute the 'OpenTelemetry Trace ID to PostgreSQL Slow-Query Correlator' (devops-opentelemetry-trace-to-sql-slow-log-correlator) blueprint with Postgres MCP, Sentry MCP, Datadog MCP. Goal: Propagate `traceparent` SQL comments from API handlers into Postgres so slow queries map 1:1 to frontend user sessions. First inspect live state in read-only mode, validate all identifiers and metrics, and output a concrete action plan with verification commands before making any changes.
Synthesized Engineering Blueprint & Setup Guide
### 1. Problem & Operational Bottleneck
Propagate `traceparent` SQL comments from API handlers into Postgres so slow queries map 1:1 to frontend user sessions. Built and battle-tested in production workflows by **@mattpocockuk** (Matt Pocock (@mattpocockuk)).
### 2. Target Architecture & Required Stack
- **Postgres MCP**
- **Sentry MCP**
- **Datadog MCP**
### 3. Step-by-Step Implementation Blueprint
1. Connect Postgres MCP, Sentry MCP, Datadog MCP and verify read-only access to the target workspace.
2. Run the discovery query for 'OpenTelemetry Trace ID to PostgreSQL Slow-Query Correlator' to establish baseline metrics and identify anomalies.
3. Generate a structured remediation or execution artifact with full source citations and diffs.
4. Stage any mutating actions behind an explicit human approval gate and verify final state.
### 4. Copy-Paste Agent Execution Prompt
```markdown
Execute the 'OpenTelemetry Trace ID to PostgreSQL Slow-Query Correlator' (devops-opentelemetry-trace-to-sql-slow-log-correlator) blueprint with Postgres MCP, Sentry MCP, Datadog MCP. Goal: Propagate `traceparent` SQL comments from API handlers into Postgres so slow queries map 1:1 to frontend user sessions. First inspect live state in read-only mode, validate all identifiers and metrics, and output a concrete action plan with verification commands before making any changes.
```
### 5. Verification & Safety Guardrails
- **Human-in-the-Loop Gate:** All external communications, production database mutations, and billing actions stage an explicit review diff before execution.
- **Deterministic Telemetry:** Every run logs structured JSON output, latency metrics, and source citations so operators can audit every decision.
Tags: #postgres-mcp#sentry-mcp#datadog-mcp#blueprint#engineering
✓ CERTIFIED X BUILDER PORTFOLIO
More Capabilities Curated from @mattpocockuk
Related Verified Capabilities
Explore Engineering & DevOps → MCP Server ★ Featured Partner ✓ Claimed
⚡ 98
Grok Template ✓ Claimed
⚡ 97
Dr. Eggbot — Meta-Agent Architect & Bot Builder
MCP Server ✓ Claimed
⚡ 89
Visual Sentinel MCP — Automated UI Pixel-Diff & Layout QA Server
MCP Server ✓ Claimed
⚡ 88
Cloudflare Official MCP — Workers, D1, R2, KV & Observability
Use Case
⚡ 95