소스 검색

trace attribs

Grant Limberg 2 달 전
부모
커밋
14c0ccc94c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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++;