Skip to content

Commit

Permalink
lib: ctraces: upgrade to v0.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 18, 2024
1 parent 96a8e4b commit f8c631b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/ctraces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif()

# CTraces Version
set(CTR_VERSION_MAJOR 0)
set(CTR_VERSION_MINOR 4)
set(CTR_VERSION_MINOR 5)
set(CTR_VERSION_PATCH 0)
set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}")

Expand Down
5 changes: 2 additions & 3 deletions lib/ctraces/src/ctr_decode_opentelemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,12 @@ static int convert_bytes_value(struct opentelemetry_decode_value *ctr_val,
break;

case CTR_OPENTELEMETRY_TYPE_ARRAY:
result = cfl_array_append_bytes(ctr_val->cfl_arr, buf, len);
result = cfl_array_append_bytes(ctr_val->cfl_arr, buf, len, CFL_FALSE);
break;

case CTR_OPENTELEMETRY_TYPE_KVLIST:
result = cfl_kvlist_insert_bytes(ctr_val->cfl_kvlist, key, buf, len);
result = cfl_kvlist_insert_bytes(ctr_val->cfl_kvlist, key, buf, len, CFL_FALSE);
break;

}

if (result == -2) {
Expand Down
4 changes: 2 additions & 2 deletions lib/ctraces/tests/decoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int generate_dummy_array_attribute_set(struct cfl_array **out_array, size
}

cfl_array_append_string(array, "string value");
cfl_array_append_bytes(array, "\xFF\xEE\xFF\xEE\xCA\xFE", 6);
cfl_array_append_bytes(array, "\xFF\xEE\xFF\xEE\xCA\xFE", 6, CFL_FALSE);
cfl_array_append_bool(array, CTR_TRUE);
cfl_array_append_int64(array, 303456);
cfl_array_append_double(array, 1.23456);
Expand Down Expand Up @@ -164,7 +164,7 @@ static int generate_dummy_kvlist_attribute_set(struct cfl_kvlist **out_kvlist, s
return -3;
}

result = cfl_kvlist_insert_bytes(kvlist, "bytes value", "\xFE\xEE\xFF\xEE\xCA\xFE", 6);
result = cfl_kvlist_insert_bytes(kvlist, "bytes value", "\xFE\xEE\xFF\xEE\xCA\xFE", 6, CFL_FALSE);

if (result != 0) {
return -3;
Expand Down

0 comments on commit f8c631b

Please sign in to comment.