diff --git a/include/OtelSender.h b/include/OtelSender.h index 40a13bd..0a30a90 100644 --- a/include/OtelSender.h +++ b/include/OtelSender.h @@ -2,7 +2,6 @@ #include #include #include - // Optional compile-time on/off switch for all network sends. // You can set -DOTEL_SEND_ENABLE=0 in platformio.ini for latency tests. #ifndef OTEL_SEND_ENABLE @@ -17,9 +16,6 @@ #define OTEL_WORKER_SLEEP_MS 0 #endif -#ifndef OTEL_QUEUE_CAPACITY -#define OTEL_QUEUE_CAPACITY 128 -#endif // Base URL of your OTLP/HTTP collector (no trailing slash), e.g. "http://192.168.8.50:4318" // You can override this via build_flags: -DOTEL_COLLECTOR_BASE_URL="\"http://…:4318\"" #ifndef OTEL_COLLECTOR_BASE_URL diff --git a/src/OtelSender.cpp b/src/OtelSender.cpp index bfb5e27..1b3180e 100644 --- a/src/OtelSender.cpp +++ b/src/OtelSender.cpp @@ -109,7 +109,7 @@ void OTelSender::workerLoop_() { #if defined(HTTPCLIENT_1_2_COMPATIBLE) || defined(ESP8266) || defined(ESP32) http.setReuse(true); #endif - if (httpBeginCompat(http,fullUrl_(it.path))) { + if (httpBeginCompat(http, fullUrl_(it.path))) { http.addHeader("Content-Type", "application/json"); (void)http.POST(it.payload); http.end();