From 347fdc2a7cffedea6154f48c57d2c72cf9c4e712 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Fri, 16 Oct 2026 11:36:54 +0000 Subject: [PATCH] Cast pg_tracing_otel_connect_timeout_ms to long CURLOPT_CONNECTTIMEOUT_MS expects a long. Link: https://curl.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html Signed-off-by: Tristan Partin --- src/pg_tracing_otel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg_tracing_otel.c b/src/pg_tracing_otel.c index 43bc9e8..b0137d8 100644 --- a/src/pg_tracing_otel.c +++ b/src/pg_tracing_otel.c @@ -109,7 +109,7 @@ send_json_trace(OtelContext * octx, const char *json_span) if (octx->config_changed) { curl_easy_setopt(octx->curl, CURLOPT_URL, pg_tracing_otel_endpoint); - curl_easy_setopt(octx->curl, CURLOPT_CONNECTTIMEOUT_MS, pg_tracing_otel_connect_timeout_ms); + curl_easy_setopt(octx->curl, CURLOPT_CONNECTTIMEOUT_MS, (long) pg_tracing_otel_connect_timeout_ms); octx->config_changed = false; } curl_easy_setopt(octx->curl, CURLOPT_POSTFIELDS, json_span);