Skip to content

Commit 7ff6178

Browse files
authored
Merge branch 'main' into make-get_span-return-static-invalid
2 parents 93bfdb0 + 6445819 commit 7ff6178

File tree

126 files changed

+1794
-799
lines changed

Some content is hidden

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

126 files changed

+1794
-799
lines changed

.iwyu.imp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
# Work around for C++ STL
88
{ "include": ["<bits/chrono.h>", "private", "<chrono>", "public"] },
99

10-
# Local opentelemetry-cpp
10+
# Local opentelemetry-cpp style
1111

12+
# We prefer to include <gtest/gtest.h> for simplicity
1213
{ "include": ["<gtest/gtest-message.h>", "private", "<gtest/gtest.h>", "public"] },
1314
{ "include": ["<gtest/gtest-test-part.h>", "private", "<gtest/gtest.h>", "public"] },
15+
{ "include": ["<gtest/gtest-param-test.h>", "private", "<gtest/gtest.h>", "public"] },
1416
{ "include": ["<gtest/gtest_pred_impl.h>", "private", "<gtest/gtest.h>", "public"] },
17+
18+
# We prefer to include <gmock/gmock.h> for simplicity
19+
{ "include": ["<gmock/gmock-function-mocker.h>", "private", "<gmock/gmock.h>", "public"] },
20+
{ "include": ["<gmock/gmock-spec-builders.h>", "private", "<gmock/gmock.h>", "public"] },
1521
]
1622

CHANGELOG.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,118 @@ Increment the:
1515

1616
## [Unreleased]
1717

18+
* [API] Jaeger Propagator should not be deprecated
19+
[#3086](https://github.com/open-telemetry/opentelemetry-cpp/pull/3086)
20+
21+
Important changes:
22+
23+
* [API] Jaeger Propagator should not be deprecated
24+
[#3086](https://github.com/open-telemetry/opentelemetry-cpp/pull/3086)
25+
26+
* Deprecation of the Jaeger propagator, as announced on 2023-01-31
27+
in version 1.8.2, is now reverted.
28+
* This deprecation turned out to be not justified,
29+
as the Jaeger propagator can be used without the (now removed)
30+
Jaeger exporter.
31+
32+
## [1.17 2024-10-07]
33+
1834
* [CI] Add a clang-tidy build
1935
[#3001](https://github.com/open-telemetry/opentelemetry-cpp/pull/3001)
2036

37+
* [BUILD] Upgrade to opentelemetry-proto 1.3.2
38+
[#2991](https://github.com/open-telemetry/opentelemetry-cpp/pull/2991)
39+
2140
* [REMOVAL] Remove build option `WITH_DEPRECATED_SDK_FACTORY`
2241
[#2717](https://github.com/open-telemetry/opentelemetry-cpp/pull/2717)
2342

43+
* [EXPORTER] ForceFlush before canceling the running requests on shutdown
44+
[#2727](https://github.com/open-telemetry/opentelemetry-cpp/pull/2727)
45+
46+
* [SDK] Fix crash in PeriodicExportingMetricReader
47+
[#2983](https://github.com/open-telemetry/opentelemetry-cpp/pull/2983)
48+
49+
* [SDK] Fix memory leak in TlsRandomNumberGenerator() constructor
50+
[#2661](https://github.com/open-telemetry/opentelemetry-cpp/pull/2661)
51+
52+
* [EXPORTER] Ignore exception when create thread in OTLP file exporter
53+
[#3012](https://github.com/open-telemetry/opentelemetry-cpp/pull/3012)
54+
55+
* [BUILD] Update the version in MODULE.bazel
56+
[#3015](https://github.com/open-telemetry/opentelemetry-cpp/pull/3015)
57+
58+
* [BUILD] Fix build without vcpkg on Windows when gRPC is disabled
59+
[#3016](https://github.com/open-telemetry/opentelemetry-cpp/pull/3016)
60+
61+
* [BUILD] Add abi_version_no bazel flag
62+
[#3020](https://github.com/open-telemetry/opentelemetry-cpp/pull/3020)
63+
64+
* [Code health] Expand iwyu coverage to include unit tests
65+
[#3022](https://github.com/open-telemetry/opentelemetry-cpp/pull/3022)
66+
67+
* [BUILD] Version opentelemetry_proto/proto_grpc shared libraries
68+
[#2992](https://github.com/open-telemetry/opentelemetry-cpp/pull/2992)
69+
70+
* [SEMANTIC CONVENTIONS] Upgrade semantic conventions to 1.27.0
71+
[#3023](https://github.com/open-telemetry/opentelemetry-cpp/pull/3023)
72+
73+
* [SDK] Support empty histogram buckets
74+
[#3027](https://github.com/open-telemetry/opentelemetry-cpp/pull/3027)
75+
76+
* [TEST] Fix sync problems in OTLP File exporter tests
77+
[#3031](https://github.com/open-telemetry/opentelemetry-cpp/pull/3031)
78+
79+
* [SDK] PeriodicExportingMetricReader: future is never set, blocks until timeout
80+
[#3030](https://github.com/open-telemetry/opentelemetry-cpp/pull/3030)
81+
82+
* [Code Health] Clang Tidy cleanup, Part 2
83+
[#3038](https://github.com/open-telemetry/opentelemetry-cpp/pull/3038)
84+
85+
* [Code Health] include-what-you-use cleanup, part 3
86+
[#3004](https://github.com/open-telemetry/opentelemetry-cpp/pull/3004)
87+
88+
* [SDK] Fix overflow in timeout logic
89+
[#3046](https://github.com/open-telemetry/opentelemetry-cpp/pull/3046)
90+
91+
* [TEST] Add missing tests to Bazel build
92+
[#3045](https://github.com/open-telemetry/opentelemetry-cpp/pull/3045)
93+
94+
* [TEST] update collector tests with debug exporter
95+
[#3050](https://github.com/open-telemetry/opentelemetry-cpp/pull/3050)
96+
97+
* [EXAMPLE] update collector example with debug exporter
98+
[#3049](https://github.com/open-telemetry/opentelemetry-cpp/pull/3049)
99+
100+
* [TEST] update references to logging exporter
101+
[#3053](https://github.com/open-telemetry/opentelemetry-cpp/pull/3053)
102+
103+
* [EXAMPLE] Clean the tracer initialization in OStream example
104+
[#3051](https://github.com/open-telemetry/opentelemetry-cpp/pull/3051)
105+
106+
* [EXPORTER] Fix the format of SpanLink for ETW
107+
[#3054](https://github.com/open-telemetry/opentelemetry-cpp/pull/3054)
108+
109+
* [EXPORTER] Add in-memory metric exporter
110+
[#3043](https://github.com/open-telemetry/opentelemetry-cpp/pull/3043)
111+
112+
* [Code Health] include-what-you-use cleanup, part 4
113+
[#3040](https://github.com/open-telemetry/opentelemetry-cpp/pull/3040)
114+
115+
* [BUILD] add loongarch info
116+
[#3052](https://github.com/open-telemetry/opentelemetry-cpp/pull/3052)
117+
118+
* [CI] Update otel-collector version
119+
[#3067](https://github.com/open-telemetry/opentelemetry-cpp/pull/3067)
120+
121+
* [SDK] Update MetricProducer interface to match spec
122+
[#3044](https://github.com/open-telemetry/opentelemetry-cpp/pull/3044)
123+
124+
* [EXPORTER] Fix URL in ES exporter, fix ipv6 supporting for http client
125+
[#3081](https://github.com/open-telemetry/opentelemetry-cpp/pull/3081)
126+
127+
* [EXPORTER] Add HttpHeaders in ElasticsearchLogRecordExporter
128+
[#3083](https://github.com/open-telemetry/opentelemetry-cpp/pull/3083)
129+
24130
Breaking changes:
25131

26132
* [REMOVAL] Remove build option `WITH_DEPRECATED_SDK_FACTORY`

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ else()
7777
set(ARCH s390x)
7878
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(sparc.*|SPARC.*)")
7979
set(ARCH sparc)
80+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(loongarch.*|LOONGARCH.*)")
81+
set(ARCH loongarch)
8082
else()
8183
message(
8284
FATAL_ERROR

DEPRECATED.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -46,45 +46,7 @@ N/A
4646

4747
## [opentelemetry-cpp API]
4848

49-
### Jaeger propagator
50-
51-
#### Announcement (Jaeger)
52-
53-
* Version: 1.8.2
54-
* Date: 2023-01-31
55-
* PR: [DEPRECATION] Deprecate the Jaeger exporter
56-
[#1923](https://github.com/open-telemetry/opentelemetry-cpp/pull/1923)
57-
58-
This PR also listed the Jaeger propagator as deprecated.
59-
60-
#### Motivation (Jaeger)
61-
62-
The Jaeger Exporter is now (July 2023) removed from the OpenTelemetry specification.
63-
64-
The Jaeger Propagator remains, because changing propagation is a longer
65-
process compared to changing an export format.
66-
67-
New deployments however are encouraged to use a W3C compliant propagator,
68-
and avoid the Jaeger propagator, which is now deprecated.
69-
70-
#### Scope (Jaeger)
71-
72-
The following are deprecated and planned for removal:
73-
74-
* the API header `opentelemetry/trace/propagation/jaeger.h`, including:
75-
* the C++ class `JaegerPropagator`
76-
77-
#### Mitigation (Jaeger)
78-
79-
Use a W3C compliant propagator instead.
80-
81-
That is, use class HttpTraceContext and "traceparent" tags.
82-
83-
Do not use class JaegerPropagator and "uber-trace-id" tags.
84-
85-
#### Planned removal (Jaeger)
86-
87-
No date set yet for the Jaeger Propagator.
49+
N/A
8850

8951
## [opentelemetry-cpp SDK]
9052

api/include/opentelemetry/trace/default_span.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class DefaultSpan : public Span
6666
DefaultSpan(SpanContext span_context) noexcept : span_context_(span_context) {}
6767

6868
// movable and copiable
69-
DefaultSpan(DefaultSpan &&spn) noexcept : span_context_(spn.GetContext()) {}
70-
DefaultSpan(const DefaultSpan &spn) noexcept : span_context_(spn.GetContext()) {}
69+
DefaultSpan(DefaultSpan &&spn) noexcept : Span(), span_context_(spn.GetContext()) {}
70+
DefaultSpan(const DefaultSpan &spn) noexcept : Span(), span_context_(spn.GetContext()) {}
7171

7272
private:
7373
SpanContext span_context_;

api/include/opentelemetry/trace/propagation/jaeger.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
#pragma once
55

6-
#ifdef OPENTELEMETRY_NO_DEPRECATED_CODE
7-
# error "header <opentelemetry/trace/propagation/jaeger.h> is deprecated."
8-
#endif
9-
106
#include "detail/hex.h"
117
#include "detail/string.h"
128
#include "opentelemetry/context/propagation/text_map_propagator.h"
@@ -21,7 +17,7 @@ namespace propagation
2117

2218
static const nostd::string_view kJaegerTraceHeader = "uber-trace-id";
2319

24-
class OPENTELEMETRY_DEPRECATED JaegerPropagator : public context::propagation::TextMapPropagator
20+
class JaegerPropagator : public context::propagation::TextMapPropagator
2521
{
2622
public:
2723
void Inject(context::propagation::TextMapCarrier &carrier,

api/include/opentelemetry/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
# define OPENTELEMETRY_ABI_VERSION_NO 1
1111
#endif
1212

13-
#define OPENTELEMETRY_VERSION "1.16.1"
13+
#define OPENTELEMETRY_VERSION "1.17.0"
1414
#define OPENTELEMETRY_VERSION_MAJOR 1
15-
#define OPENTELEMETRY_VERSION_MINOR 16
16-
#define OPENTELEMETRY_VERSION_PATCH 1
15+
#define OPENTELEMETRY_VERSION_MINOR 17
16+
#define OPENTELEMETRY_VERSION_PATCH 0
1717

1818
#define OPENTELEMETRY_ABI_VERSION OPENTELEMETRY_STRINGIFY(OPENTELEMETRY_ABI_VERSION_NO)
1919

api/test/trace/propagation/CMakeLists.txt

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
add_subdirectory(detail)
55

6-
foreach(testname http_text_format_test b3_propagation_test)
6+
foreach(testname http_text_format_test b3_propagation_test
7+
jaeger_propagation_test)
78
add_executable(${testname} "${testname}.cc")
89
target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES}
910
${CMAKE_THREAD_LIBS_INIT} opentelemetry_api)
@@ -12,16 +13,3 @@ foreach(testname http_text_format_test b3_propagation_test)
1213
TEST_PREFIX trace.
1314
TEST_LIST ${testname})
1415
endforeach()
15-
16-
if(NOT WITH_NO_DEPRECATED_CODE)
17-
foreach(testname jaeger_propagation_test)
18-
19-
add_executable(${testname} "${testname}.cc")
20-
target_link_libraries(${testname} ${GTEST_BOTH_LIBRARIES}
21-
${CMAKE_THREAD_LIBS_INIT} opentelemetry_api)
22-
gtest_add_tests(
23-
TARGET ${testname}
24-
TEST_PREFIX trace.
25-
TEST_LIST ${testname})
26-
endforeach()
27-
endif()

ci/do_ci.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function install_prometheus_cpp_client
2020
function run_benchmarks
2121
{
2222
docker run -d --rm -it -p 4317:4317 -p 4318:4318 -v \
23-
$(pwd)/examples/otlp:/cfg otel/opentelemetry-collector:0.38.0 \
23+
$(pwd)/examples/otlp:/cfg otel/opentelemetry-collector:0.109.0 \
2424
--config=/cfg/opentelemetry-collector-config/config.dev.yaml
2525

2626
[ -z "${BENCHMARK_DIR}" ] && export BENCHMARK_DIR=$HOME/benchmark
@@ -484,8 +484,8 @@ elif [[ "$1" == "bazel.noexcept" ]]; then
484484
# there are some exceptions and error handling code from the Prometheus Client
485485
# as well as Opentracing shim (due to some third party code in its Opentracing dependency)
486486
# that make this test always fail. Ignore these packages in the noexcept test here.
487-
bazel $BAZEL_STARTUP_OPTIONS build --copt=-fno-exceptions $BAZEL_OPTIONS_ASYNC -- //... -//exporters/prometheus/... -//examples/prometheus/... -//sdk/test/metrics:attributes_hashmap_test -//opentracing-shim/...
488-
bazel $BAZEL_STARTUP_OPTIONS test --copt=-fno-exceptions $BAZEL_TEST_OPTIONS_ASYNC -- //... -//exporters/prometheus/... -//examples/prometheus/... -//sdk/test/metrics:attributes_hashmap_test -//opentracing-shim/...
487+
bazel $BAZEL_STARTUP_OPTIONS build --copt=-fno-exceptions $BAZEL_OPTIONS_ASYNC -- //... -//exporters/prometheus/... -//examples/prometheus/... -//opentracing-shim/...
488+
bazel $BAZEL_STARTUP_OPTIONS test --copt=-fno-exceptions $BAZEL_TEST_OPTIONS_ASYNC -- //... -//exporters/prometheus/... -//examples/prometheus/... -//opentracing-shim/...
489489
exit 0
490490
elif [[ "$1" == "bazel.nortti" ]]; then
491491
# there are some exceptions and error handling code from the Prometheus Client

docs/public/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = 'OpenTelemetry authors'
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = "1.16.1"
27+
release = "1.17.0"
2828

2929
# Run sphinx on subprojects and copy output
3030
# -----------------------------------------

0 commit comments

Comments
 (0)