Skip to content

Commit

Permalink
lib: cmetrics: upgrade to v0.8.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 f8c631b commit bf4cb71
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/cmetrics/.github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
submodules: true

- name: Build on ${{ matrix.os }} with ${{ matrix.compiler }}
uses: uraimo/run-on-arch-action@v2.3.0
uses: uraimo/run-on-arch-action@v2.5.0
with:
arch: aarch64
distro: ubuntu20.04
Expand Down
2 changes: 1 addition & 1 deletion lib/cmetrics/.github/workflows/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
submodules: true

- uses: uraimo/run-on-arch-action@v2.3.0
- uses: uraimo/run-on-arch-action@v2.5.0
name: Build the ${{matrix.format}} packages
with:
arch: aarch64
Expand Down
4 changes: 2 additions & 2 deletions lib/cmetrics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# CMetrics Version
set(CMT_VERSION_MAJOR 0)
set(CMT_VERSION_MINOR 7)
set(CMT_VERSION_PATCH 3)
set(CMT_VERSION_MINOR 8)
set(CMT_VERSION_PATCH 0)
set(CMT_VERSION_STR "${CMT_VERSION_MAJOR}.${CMT_VERSION_MINOR}.${CMT_VERSION_PATCH}")

# Include helpers
Expand Down
5 changes: 3 additions & 2 deletions lib/cmetrics/src/cmt_decode_opentelemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ static struct cfl_variant *clone_variant(Opentelemetry__Proto__Common__V1__AnyVa
}
}
else if (source->value_case == OPENTELEMETRY__PROTO__COMMON__V1__ANY_VALUE__VALUE_BYTES_VALUE) {
result_instance = cfl_variant_create_from_bytes((char *) source->bytes_value.data, source->bytes_value.len);
result_instance = cfl_variant_create_from_bytes((char *) source->bytes_value.data, source->bytes_value.len,
CFL_FALSE);
}

return result_instance;
Expand Down Expand Up @@ -1265,7 +1266,7 @@ int cmt_decode_opentelemetry_create(struct cfl_list *result_context_list,

cfl_list_init(result_context_list);

service_request = opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__unpack(NULL, in_size - *offset,
service_request = opentelemetry__proto__collector__metrics__v1__export_metrics_service_request__unpack(NULL, in_size - *offset,
(unsigned char *) &in_buf[*offset]);

if (service_request != NULL) {
Expand Down

0 comments on commit bf4cb71

Please sign in to comment.