Skip to content

Commit 1aaad50

Browse files
committed
out_opentelemetry: switch config property 'http2' default to 'off'
We have received many reports that Fluent Bit cannot send data to the OpenTelemetry Collector over a plain text communication, this is happening because we enabled http2 by default so when the Otel Collector receives the request (PRI * HTTP/2.0...) it drops the connection. This PR switches http2 default to off so users don't run into this problem. Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent 1c8259e commit 1aaad50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/out_opentelemetry/opentelemetry.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ int opentelemetry_post(struct opentelemetry_context *ctx,
284284

285285
if (request->protocol_version == HTTP_PROTOCOL_VERSION_20 &&
286286
ctx->enable_grpc_flag) {
287+
287288
grpc_body = cfl_sds_create_size(body_len + 5);
288289

289290
if (grpc_body == NULL) {
@@ -819,7 +820,7 @@ static struct flb_config_map config_map[] = {
819820
"Adds a custom label to the metrics use format: 'add_label name value'"
820821
},
821822
{
822-
FLB_CONFIG_MAP_STR, "http2", "on",
823+
FLB_CONFIG_MAP_STR, "http2", "off",
823824
0, FLB_TRUE, offsetof(struct opentelemetry_context, enable_http2),
824825
"Enable, disable or force HTTP/2 usage. Accepted values : on, off, force"
825826
},

0 commit comments

Comments
 (0)