Skip to content

Commit

Permalink
lib: ctraces: upgrade to v0.5.4
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Aug 7, 2024
1 parent c147d45 commit 9392bc1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions lib/ctraces/.github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ jobs:
steps:
- name: Set up base image dependencies
run: |
sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
yum -y update && \
yum install -y ca-certificates cmake curl-devel gcc gcc-c++ git make wget && \
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
rpm -ivh epel-release-latest-7.noarch.rpm && \
yum install -y epel-release
yum install -y cmake3
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion lib/ctraces/.github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run markdownlint
uses: actionshub/markdownlint@2.0.2
uses: actionshub/markdownlint@v3.1.4
2 changes: 1 addition & 1 deletion lib/ctraces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ endif()
# CTraces Version
set(CTR_VERSION_MAJOR 0)
set(CTR_VERSION_MINOR 5)
set(CTR_VERSION_PATCH 2)
set(CTR_VERSION_PATCH 3)
set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}")

# Define __FILENAME__ consistently across Operating Systems
Expand Down
1 change: 0 additions & 1 deletion lib/ctraces/examples/otlp-encoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ service:
```
Now you can run the example and see the trace data logged by the collector instance.
7 changes: 6 additions & 1 deletion lib/ctraces/src/ctr_encode_msgpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,12 @@ static void pack_scope_spans(mpack_writer_t *writer, struct cfl_list *scope_span

/* scope */
mpack_write_cstr(writer, "scope");
pack_instrumentation_scope(writer, scope_span->instrumentation_scope);
if (scope_span->instrumentation_scope != NULL) {
pack_instrumentation_scope(writer, scope_span->instrumentation_scope);
}
else {
mpack_write_nil(writer);
}

/* spans */
mpack_write_cstr(writer, "spans");
Expand Down

0 comments on commit 9392bc1

Please sign in to comment.