diff options
Diffstat (limited to '')
-rw-r--r-- | src/exporting/send_data.c (renamed from exporting/send_data.c) | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/exporting/send_data.c b/src/exporting/send_data.c index e8b8aaf60..b79f0a3e3 100644 --- a/exporting/send_data.c +++ b/src/exporting/send_data.c @@ -31,7 +31,7 @@ static int exporting_tls_is_enabled(EXPORTING_CONNECTOR_TYPE type __maybe_unused * @return Always returns 0. */ int exporting_discard_response(BUFFER *buffer, struct instance *instance) { -#if NETDATA_INTERNAL_CHECKS +#ifdef NETDATA_INTERNAL_CHECKS char sample[1024]; const char *s = buffer_tostring(buffer); char *d = sample, *e = &sample[sizeof(sample) - 1]; @@ -217,6 +217,10 @@ void simple_connector_worker(void *instance_p) struct instance *instance = (struct instance*)instance_p; struct simple_connector_data *connector_specific_data = instance->connector_specific_data; + char threadname[ND_THREAD_TAG_MAX + 1]; + snprintfz(threadname, ND_THREAD_TAG_MAX, "EXPSMPL[%zu]", instance->index); + uv_thread_set_name_np(threadname); + #ifdef ENABLE_HTTPS uint32_t options = (uint32_t)instance->config.options; @@ -391,7 +395,7 @@ void simple_connector_worker(void *instance_p) #endif } -#if ENABLE_PROMETHEUS_REMOTE_WRITE +#ifdef ENABLE_PROMETHEUS_REMOTE_WRITE if (instance->config.type == EXPORTING_CONNECTOR_TYPE_PROMETHEUS_REMOTE_WRITE) clean_prometheus_remote_write(instance); #endif |