Skip to content

Commit 5905ddc

Browse files
committed
lib: cmetrics: upgrade to v1.0.1
Signed-off-by: Eduardo Silva <[email protected]>
1 parent e6ea69c commit 5905ddc

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

lib/cmetrics/.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
submodules: true
142142

143143
- name: Build on ${{ matrix.os }} with ${{ matrix.compiler }}
144-
uses: uraimo/[email protected].0
144+
uses: uraimo/[email protected].1
145145
with:
146146
arch: aarch64
147147
distro: ubuntu_latest

lib/cmetrics/.github/workflows/packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
submodules: true
2424

25-
- uses: uraimo/[email protected].0
25+
- uses: uraimo/[email protected].1
2626
name: Build the ${{matrix.format}} packages
2727
with:
2828
arch: aarch64

lib/cmetrics/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
66
# CMetrics Version
77
set(CMT_VERSION_MAJOR 1)
88
set(CMT_VERSION_MINOR 0)
9-
set(CMT_VERSION_PATCH 0)
9+
set(CMT_VERSION_PATCH 1)
1010
set(CMT_VERSION_STR "${CMT_VERSION_MAJOR}.${CMT_VERSION_MINOR}.${CMT_VERSION_PATCH}")
1111

1212
# Include helpers

lib/cmetrics/src/cmt_decode_opentelemetry.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ static int decode_data_point_labels(struct cmt *cmt,
361361
attribute = (Opentelemetry__Proto__Common__V1__KeyValue *)
362362
value_index_list[map_label_index];
363363

364+
if (attribute->value == NULL) {
365+
continue;
366+
}
367+
364368
if (attribute->value->value_case == OPENTELEMETRY__PROTO__COMMON__V1__ANY_VALUE__VALUE_STRING_VALUE) {
365369
result = append_new_metric_label_value(metric, attribute->value->string_value, 0);
366370
}

lib/cmetrics/src/cmt_decode_prometheus.l

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146

147147
["] {
148148
BEGIN(INQUOTE);
149+
if (context->strbuf != NULL) {
150+
cfl_sds_destroy(context->strbuf);
151+
}
149152
context->strbuf = sds_alloc(256);
150153
}
151154

0 commit comments

Comments
 (0)