Browse Source

trace attribs

Grant Limberg 3 weeks ago
parent
commit
14c0ccc94c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controller/PostgreSQL.hpp

+ 2 - 0
controller/PostgreSQL.hpp

@@ -77,6 +77,7 @@ template <typename T> 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 <typename T> 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++;