Skip to content

Commit f33bd27

Browse files
committed
fix: deprecations in otel 1.22
1 parent 6d0bec5 commit f33bd27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

0 commit comments

Comments
 (0)