@@ -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
@@ -686,7 +686,8 @@ static int binary_payload_to_msgpack(struct flb_opentelemetry *ctx,
686
686
flb_plg_error (ctx -> ins , "could not set group content metadata" );
687
687
goto binary_payload_to_msgpack_end ;
688
688
}
689
- flb_log_event_encoder_group_header_end (encoder );
689
+
690
+ flb_log_event_encoder_group_end (encoder );
690
691
691
692
msgpack_sbuffer_clear (& mp_sbuf );
692
693
@@ -2856,7 +2857,6 @@ int opentelemetry_prot_handle_ng(struct flb_http_request *request,
2856
2857
strcmp (request -> path , "/opentelemetry.proto.collector.metric.v1.MetricService/Export" ) == 0 ||
2857
2858
strcmp (request -> path , "/opentelemetry.proto.collector.trace.v1.TraceService/Export" ) == 0 ||
2858
2859
strcmp (request -> path , "/opentelemetry.proto.collector.log.v1.LogService/Export" ) == 0 ) {
2859
-
2860
2860
grpc_request = FLB_TRUE ;
2861
2861
}
2862
2862
else if (context -> profile_support_enabled &&
@@ -2914,6 +2914,7 @@ int opentelemetry_prot_handle_ng(struct flb_http_request *request,
2914
2914
else {
2915
2915
tag = flb_sds_create (context -> ins -> tag );
2916
2916
}
2917
+
2917
2918
result = process_payload_logs_ng (context , tag , request , response );
2918
2919
}
2919
2920
else if (context -> profile_support_enabled &&
0 commit comments