Re: POC: Extension for adding distributed tracing - pg_tracing

From: Nikita Malakhov <hukutoc(at)gmail(dot)com>
To: Anthonin Bonnefoy <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
Cc: Aleksander Alekseev <aleksander(at)timescale(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: POC: Extension for adding distributed tracing - pg_tracing
Date: 2023-08-03 19:13:18
Message-ID: CAN-LCVNkDja4r1YTf6zPxeBLtdLUmfKz4x04SpsLh1MicD5-nQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi!

Please check some suggested improvements -
1) query_id added so span to be able to join it with pg_stat_activity and
pg_stat_statements;
2) table for storing spans added, to flush spans buffer, for maintenance
reasons - to keep track of spans,
with SQL function that flushes buffer into table instead of recordset;
3) added setter function for sampling_rate GUC to tweak it on-the-fly
without restart.

--
Regards,
Nikita Malakhov
Postgres Professional
The Russian Postgres Company
https://postgrespro.ru/

Attachment Content-Type Size
0001_pg_tracing_v2_1.patch application/octet-stream 132.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-08-03 19:13:47 Re: Extract numeric filed in JSONB more effectively
Previous Message Nathan Bossart 2023-08-03 18:53:56 Re: Using defines for protocol characters