Skip to content

Commit 9299bec

Browse files
committed
merged from upstream, fixed version.h getting included first (except semconv generated files)
2 parents 3b25e47 + 545f9f4 commit 9299bec

File tree

181 files changed

+490
-231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+490
-231
lines changed

.github/workflows/cmake_install.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ jobs:
3737
- name: Run DLL Tests
3838
run: ./ci/do_ci.ps1 cmake.dll.install.test
3939

40-
windows_2019_vcpkg_submodule_min_cmake:
41-
name: Windows 2019 vcpkg submodule versions minimum cmake cxx14 (static libs)
40+
windows_2025_vcpkg_submodule:
41+
name: Windows 2025 vcpkg submodule versions cxx20 (static libs)
4242
runs-on: windows-2025
4343
env:
44-
# cmake 3.15 is the minimum for windows builds (See https://github.com/open-telemetry/opentelemetry-cpp/pull/3349#discussion_r2030319430)
45-
CMAKE_VERSION: '3.15.0'
46-
# cxx14 is the default for windows-2019
47-
CXX_STANDARD: '14'
44+
# Set to the latest version of cmake 3.x
45+
CMAKE_VERSION: '3.31.6'
46+
CXX_STANDARD: '20'
4847
steps:
4948
- name: Harden the runner (Audit all outbound calls)
5049
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
@@ -373,4 +372,4 @@ jobs:
373372
- name: Run Tests (static libs)
374373
env:
375374
BUILD_SHARED_LIBS: 'OFF'
376-
run: ./ci/do_ci.sh cmake.install.test
375+
run: ./ci/do_ci.sh cmake.install.test

.github/workflows/iwyu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
readonly WARNING_COUNT=`grep -c "include-what-you-use reported diagnostics:" iwyu.log`
8888
echo "include-what-you-use reported ${WARNING_COUNT} warning(s)"
8989
# Acceptable limit, to decrease over time down to 0
90-
readonly WARNING_LIMIT=122
90+
readonly WARNING_LIMIT=0
9191
# FAIL the build if WARNING_COUNT > WARNING_LIMIT
9292
if [ $WARNING_COUNT -gt $WARNING_LIMIT ] ; then
9393
exit 1

api/include/opentelemetry/common/macros.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,21 +196,21 @@
196196
# define OPENTELEMETRY_MAYBE_UNUSED
197197
#endif
198198

199-
#ifndef OPENTELEMETRY_RTTI_ENABLED
200-
# if defined(__clang__)
201-
# if __has_feature(cxx_rtti)
202-
# define OPENTELEMETRY_RTTI_ENABLED
203-
# endif
204-
# elif defined(__GNUG__)
205-
# if defined(__GXX_RTTI)
206-
# define OPENTELEMETRY_RTTI_ENABLED
207-
# endif
208-
# elif defined(_MSC_VER)
209-
# if defined(_CPPRTTI)
210-
# define OPENTELEMETRY_RTTI_ENABLED
211-
# endif
212-
# endif
213-
#endif
199+
// #ifndef OPENTELEMETRY_RTTI_ENABLED
200+
// # if defined(__clang__)
201+
// # if __has_feature(cxx_rtti)
202+
// # define OPENTELEMETRY_RTTI_ENABLED
203+
// # endif
204+
// # elif defined(__GNUG__)
205+
// # if defined(__GXX_RTTI)
206+
// # define OPENTELEMETRY_RTTI_ENABLED
207+
// # endif
208+
// # elif defined(_MSC_VER)
209+
// # if defined(_CPPRTTI)
210+
// # define OPENTELEMETRY_RTTI_ENABLED
211+
// # endif
212+
// # endif
213+
// #endif
214214

215215
#if defined(__cplusplus) && __cplusplus >= 201402L
216216
# define OPENTELEMETRY_DEPRECATED [[deprecated]]

api/include/opentelemetry/semconv/azure_metrics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
#pragma once
1212

13+
#include "opentelemetry/version.h"
1314
#include "opentelemetry/common/macros.h"
1415
#include "opentelemetry/metrics/meter.h"
15-
#include "opentelemetry/version.h"
1616

1717
OPENTELEMETRY_BEGIN_NAMESPACE
1818
namespace semconv

api/include/opentelemetry/semconv/cicd_metrics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
#pragma once
1212

13+
#include "opentelemetry/version.h"
1314
#include "opentelemetry/common/macros.h"
1415
#include "opentelemetry/metrics/meter.h"
15-
#include "opentelemetry/version.h"
1616

1717
OPENTELEMETRY_BEGIN_NAMESPACE
1818
namespace semconv

api/include/opentelemetry/semconv/client_attributes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#pragma once
1212

13-
#include "opentelemetry/common/macros.h"
1413
#include "opentelemetry/version.h"
14+
#include "opentelemetry/common/macros.h"
1515

1616
OPENTELEMETRY_BEGIN_NAMESPACE
1717
namespace semconv

api/include/opentelemetry/semconv/code_attributes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#pragma once
1212

13-
#include "opentelemetry/common/macros.h"
1413
#include "opentelemetry/version.h"
14+
#include "opentelemetry/common/macros.h"
1515

1616
OPENTELEMETRY_BEGIN_NAMESPACE
1717
namespace semconv

api/include/opentelemetry/semconv/container_metrics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
#pragma once
1212

13+
#include "opentelemetry/version.h"
1314
#include "opentelemetry/common/macros.h"
1415
#include "opentelemetry/metrics/meter.h"
15-
#include "opentelemetry/version.h"
1616

1717
OPENTELEMETRY_BEGIN_NAMESPACE
1818
namespace semconv

api/include/opentelemetry/semconv/cpu_metrics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
#pragma once
1212

13+
#include "opentelemetry/version.h"
1314
#include "opentelemetry/common/macros.h"
1415
#include "opentelemetry/metrics/meter.h"
15-
#include "opentelemetry/version.h"
1616

1717
OPENTELEMETRY_BEGIN_NAMESPACE
1818
namespace semconv

api/include/opentelemetry/semconv/db_attributes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#pragma once
1212

13-
#include "opentelemetry/common/macros.h"
1413
#include "opentelemetry/version.h"
14+
#include "opentelemetry/common/macros.h"
1515

1616
OPENTELEMETRY_BEGIN_NAMESPACE
1717
namespace semconv

0 commit comments

Comments
 (0)