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++;