@@ -202,7 +202,7 @@ static int process_payload_raw_traces(struct flb_opentelemetry *ctx, struct http
202202 msgpack_pack_array (& mp_pck , 2 );
203203 flb_pack_time_now (& mp_pck );
204204
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 */
206206 ret = flb_pack_json (request -> data .data , request -> data .len ,
207207 & out_buf , & out_size , & root_type , NULL );
208208
@@ -685,7 +685,8 @@ static int binary_payload_to_msgpack(struct flb_opentelemetry *ctx,
685685 flb_plg_error (ctx -> ins , "could not set group content metadata" );
686686 goto binary_payload_to_msgpack_end ;
687687 }
688- flb_log_event_encoder_group_header_end (encoder );
688+
689+ flb_log_event_encoder_group_end (encoder );
689690
690691 msgpack_sbuffer_clear (& mp_sbuf );
691692
@@ -2857,7 +2858,6 @@ int opentelemetry_prot_handle_ng(struct flb_http_request *request,
28572858 strcmp (request -> path , "/opentelemetry.proto.collector.metric.v1.MetricService/Export" ) == 0 ||
28582859 strcmp (request -> path , "/opentelemetry.proto.collector.trace.v1.TraceService/Export" ) == 0 ||
28592860 strcmp (request -> path , "/opentelemetry.proto.collector.log.v1.LogService/Export" ) == 0 ) {
2860-
28612861 grpc_request = FLB_TRUE ;
28622862 }
28632863 else if (context -> profile_support_enabled &&
@@ -2915,6 +2915,7 @@ int opentelemetry_prot_handle_ng(struct flb_http_request *request,
29152915 else {
29162916 tag = flb_sds_create (context -> ins -> tag );
29172917 }
2918+
29182919 result = process_payload_logs_ng (context , tag , request , response );
29192920 }
29202921 else if (context -> profile_support_enabled &&
0 commit comments