@@ -202,7 +202,7 @@ static int process_payload_raw_traces(struct flb_opentelemetry *ctx, struct http
202
202
msgpack_pack_array (& mp_pck , 2 );
203
203
flb_pack_time_now (& mp_pck );
204
204
205
- /* Check if the incoming payload is a valid JSON message and convert it to msgpack */
205
+ /* Check if the incoming payload is a valid message and convert it to msgpack */
206
206
ret = flb_pack_json (request -> data .data , request -> data .len ,
207
207
& out_buf , & out_size , & root_type , NULL );
208
208
@@ -685,7 +685,8 @@ static int binary_payload_to_msgpack(struct flb_opentelemetry *ctx,
685
685
flb_plg_error (ctx -> ins , "could not set group content metadata" );
686
686
goto binary_payload_to_msgpack_end ;
687
687
}
688
- flb_log_event_encoder_group_header_end (encoder );
688
+
689
+ flb_log_event_encoder_group_end (encoder );
689
690
690
691
msgpack_sbuffer_clear (& mp_sbuf );
691
692
@@ -2857,7 +2858,6 @@ int opentelemetry_prot_handle_ng(struct flb_http_request *request,
2857
2858
strcmp (request -> path , "/opentelemetry.proto.collector.metric.v1.MetricService/Export" ) == 0 ||
2858
2859
strcmp (request -> path , "/opentelemetry.proto.collector.trace.v1.TraceService/Export" ) == 0 ||
2859
2860
strcmp (request -> path , "/opentelemetry.proto.collector.log.v1.LogService/Export" ) == 0 ) {
2860
-
2861
2861
grpc_request = FLB_TRUE ;
2862
2862
}
2863
2863
else if (context -> profile_support_enabled &&
@@ -2915,6 +2915,7 @@ int opentelemetry_prot_handle_ng(struct flb_http_request *request,
2915
2915
else {
2916
2916
tag = flb_sds_create (context -> ins -> tag );
2917
2917
}
2918
+
2918
2919
result = process_payload_logs_ng (context , tag , request , response );
2919
2920
}
2920
2921
else if (context -> profile_support_enabled &&
0 commit comments