Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agents/grpc/src/grpc_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ int GrpcAgent::start_heap_snapshot_from_js(
return;
}

USE(uv_thread_setname("NSolidGrpcAgent"));
agent->do_start();
do {
ASSERT_EQ(0, uv_run(&agent->loop_, UV_RUN_DEFAULT));
Expand Down
1 change: 1 addition & 0 deletions agents/otlp/src/otlp_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ int OTLPAgent::config(const nlohmann::json& config) {


/*static*/ void OTLPAgent::run_(nsuv::ns_thread*, OTLPAgent* agent) {
USE(uv_thread_setname("NSolidOTLPAgent"));
agent->do_start();
do {
ASSERT_EQ(0, uv_run(&agent->loop_, UV_RUN_DEFAULT));
Expand Down
1 change: 1 addition & 0 deletions agents/statsd/src/statsd_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ void StatsDAgent::do_stop() {
}

void StatsDAgent::run_(nsuv::ns_thread*, WeakStatsDAgent agent_wp) {
USE(uv_thread_setname("NSolidStatsDAgent"));
SharedStatsDAgent agent = agent_wp.lock();
if (agent == nullptr) {
return;
Expand Down
1 change: 1 addition & 0 deletions agents/zmq/src/zmq_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ const string_vector ZmqAgent::metrics_fields = {"/interval",
"/pauseMetrics"};

void ZmqAgent::run(nsuv::ns_thread*, ZmqAgent* agent) {
USE(uv_thread_setname("NSolidZmqAgent"));
agent->do_start();
do {
ASSERT_EQ(0, uv_run(&agent->loop_, UV_RUN_DEFAULT));
Expand Down
1 change: 1 addition & 0 deletions src/nsolid/nsolid_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,7 @@ void EnvList::removed_env_cb_(ns_async*, EnvList* envlist) {

void EnvList::env_list_routine_(ns_thread*, EnvList* envlist) {
int er;
USE(uv_thread_setname("NSolidThread"));
er = envlist->blocked_loop_timer_.start(
blocked_loop_timer_cb_, blocked_loop_interval, blocked_loop_interval);
CHECK_EQ(er, 0);
Expand Down
Loading