]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
write_http plugin: Remove `WH_FORMAT_OTLP_PROTO`. 4188/head
authorFlorian Forster <octo@collectd.org>
Wed, 3 Jan 2024 15:01:18 +0000 (16:01 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 3 Jan 2024 15:39:36 +0000 (16:39 +0100)
src/write_http.c

index 9f297cc07b871ac552ce36d3119da0e84a64a1d2..28eb3d69b07f5c0c1bbd43edf10356809a50e721 100644 (file)
@@ -72,7 +72,6 @@ struct wh_callback_s {
 #define WH_FORMAT_JSON 1
 #define WH_FORMAT_KAIROSDB 2
 #define WH_FORMAT_INFLUXDB 3
-#define WH_FORMAT_OTLP_PROTO 4
 #define WH_FORMAT_OTLP_JSON 5
   int format;
   bool send_metrics;
@@ -334,7 +333,7 @@ static int wh_flush(cdtime_t timeout,
     }
   }
 
-  if (cb->format == WH_FORMAT_OTLP_PROTO || cb->format == WH_FORMAT_OTLP_JSON) {
+  if (cb->format == WH_FORMAT_OTLP_JSON) {
     /* cb->send_buffer_lock is unlocked in flush_resource_metrics. */
     return flush_resource_metrics(cb);
   }
@@ -523,10 +522,6 @@ static int wh_write(metric_family_t const *fam, user_data_t *user_data) {
   case WH_FORMAT_INFLUXDB:
     status = wh_write_influxdb(fam, cb);
     break;
-  case WH_FORMAT_OTLP_PROTO:
-    status = -1;
-    ERROR("wh_write_otlp_proto: Not implemented yet.");
-    break;
   case WH_FORMAT_OTLP_JSON:
     status = wh_write_resource_metrics(fam, cb);
     break;