From 14c0ccc94cbe9846fce542e4138aa284333809e3 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 16 Jul 2025 13:12:00 -0700 Subject: [PATCH] trace attribs --- controller/PostgreSQL.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp index 6f1704306..883085107 100644 --- a/controller/PostgreSQL.hpp +++ b/controller/PostgreSQL.hpp @@ -77,6 +77,7 @@ template class MemberNotificationReceiver : public pqxx::notificati auto span = tracer->StartSpan("db_member_notification::operator()"); auto scope = tracer->WithActiveSpan(span); span->SetAttribute("payload", payload); + span->SetAttribute("psqlReady", _psql->isReady()); fprintf(stderr, "Member Notification received: %s\n", payload.c_str()); Metrics::pgsql_mem_notification++; @@ -117,6 +118,7 @@ template class NetworkNotificationReceiver : public pqxx::notificat auto span = tracer->StartSpan("db_network_notification::operator()"); auto scope = tracer->WithActiveSpan(span); span->SetAttribute("payload", payload); + span->SetAttribute("psqlReady", _psql->isReady()); fprintf(stderr, "Network Notification received: %s\n", payload.c_str()); Metrics::pgsql_net_notification++;