Skip to content

Commit

Permalink
out_opentelemetry: skip ra_trace_flags_metadata check (CID 508199)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Aug 30, 2024
1 parent 7fbb63f commit 3c367cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_opentelemetry/opentelemetry_logs.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ static int append_v1_logs_metadata_and_fields(struct opentelemetry_context *ctx,
flb_ra_key_value_destroy(ra_val);
}

if (!trace_flags_set && ctx->ra_trace_flags_metadata) {
if (!trace_flags_set) {
ra_val = flb_ra_get_value_object(ctx->ra_trace_flags_metadata, *event->metadata);
if (ra_val != NULL) {
if (ra_val->o.type == MSGPACK_OBJECT_POSITIVE_INTEGER) {
Expand Down

0 comments on commit 3c367cd

Please sign in to comment.