Skip to content

Commit a2af86a

Browse files
authored
Merge pull request #146 from sjinks/renovate/open-telemetry-opentelemetry-cpp-1.x
chore(deps): update dependency open-telemetry/opentelemetry-cpp to v1.23.0
2 parents 2b26628 + 455f827 commit a2af86a

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
run: echo "OPENTELEMETRY_CPP_VERSION=${OPENTELEMETRY_CPP_VERSION}" >> "${GITHUB_ENV}"
1515
env:
1616
# renovate: datasource=github-releases depName=open-telemetry/opentelemetry-cpp
17-
OPENTELEMETRY_CPP_VERSION: v1.22.0
17+
OPENTELEMETRY_CPP_VERSION: v1.23.0
1818

1919
- name: Make /usr/local/include and /usr/local/lib writable
2020
shell: bash

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV CC=clang-18
88
WORKDIR /build
99

1010
# renovate: datasource=github-releases depName=open-telemetry/opentelemetry-cpp
11-
ENV OPENTELEMETRY_CPP_VERSION=v1.22.0
11+
ENV OPENTELEMETRY_CPP_VERSION=v1.23.0
1212
RUN \
1313
git clone https://github.com/open-telemetry/opentelemetry-cpp.git \
1414
--depth=1 -b "${OPENTELEMETRY_CPP_VERSION}" --single-branch && \

src/os_utils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ std::string get_os_type(std::string_view os)
9393
std::pair{"NetBSD"sv, kNetbsd},
9494
std::pair{"OpenBSD"sv, kOpenbsd},
9595
std::pair{"SunOS"sv, kSolaris},
96+
#if OPENTELEMETRY_VERSION_MAJOR == 1 && OPENTELEMETRY_VERSION_MINOR < 22
9697
std::pair{"OS/390"sv, kZOs}
98+
#else
99+
std::pair{"OS/390"sv, kZos}
100+
#endif
97101
};
98102

99103
#ifdef USE_MPH

test/os_utils/get_os_type.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ TEST_P(GetOsTypeTest, get_os_type)
3030
EXPECT_EQ(actual, expected);
3131
}
3232

33+
#if OPENTELEMETRY_VERSION_MAJOR == 1 && OPENTELEMETRY_VERSION_MINOR < 22
34+
static constexpr const char* z_os = kZOs;
35+
#else
36+
static constexpr const char* z_os = kZos;
37+
#endif
38+
3339
INSTANTIATE_TEST_SUITE_P(
3440
Table,
3541
GetOsTypeTest,
@@ -52,7 +58,7 @@ INSTANTIATE_TEST_SUITE_P(
5258
std::make_tuple("NetBSD", kNetbsd),
5359
std::make_tuple("OpenBSD", kOpenbsd),
5460
std::make_tuple("SunOS", kSolaris),
55-
std::make_tuple("OS/390", kZOs),
61+
std::make_tuple("OS/390", z_os),
5662
std::make_tuple("UNKNOWN", "UNKNOWN")
5763
)
5864
);

0 commit comments

Comments
 (0)