{"repo":"DataDog/pg_tracing","free":true,"listed":false,"github":"https://github.com/DataDog/pg_tracing","clone":"git clone https://github.com/DataDog/pg_tracing.git","description":"Distributed Tracing for PostgreSQL","language":"C","stars":405,"topics":["distributed-tracing","postgresql","tracing"],"license":"MIT","category":"analytics","readme_excerpt":"pg tracing pg tracing is a PostgreSQL extension that generates server-side spans for distributed tracing. When pg tracing is active, it generates spans on sampled queries. To access these spans, the extension provides two ways: - pg tracing consume spans and pg tracing peek spans views output spans as a set of records - pg tracing json spans function outputs spans as a OTLP json The utility functions pg tracing reset and pg tracing info provide ways to read and reset extension's statistics. These are not available globally but can be enabled for a specific database with CREATE EXTENSION pg tracing . There are currently two mechanisms to propagate trace context: - As a SQL comment using SQLCommenter - As a GUC parameter pg tracing.trace context See Trace Propagation for more details. [!WARNING] This extension is still in early development and may be unstable. PostgreSQL Version Compatibility pg tracing only supports PostgreSQL 14, 15 and 16 for the moment. Generated Spans pg tracing generates spans for the following events: - PostgreSQL internal functions: Planner, ProcessUtility, ExecutorRun, ExecutorFinish - Statements: SELECT, INSERT, DELETE... - Utility Statements: ALTER, SHOW, TRUNCATE, CALL... - Execution Plan: A span is created for each node of the execution plan (SeqScan, NestedLoop, HashJoin...) - Nested queries: Statements invoked within another statement (like a function) - Triggers: Statements executed through BEFORE and AFTER trigger are tracked - Parallel Workers","default_branch":null,"files":null,"tree":[],"storefront":"/r/DataDog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DataDog/pg_tracing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}