v1.13.0
版本发布时间: 2023-12-07 04:12:27
open-telemetry/opentelemetry-cpp最新发布版本:v1.16.1(2024-07-18 04:12:23)
v1.13.0 release
Release of core packages
- opentelemetry-api
- opentelemetry-sdk
and exporter packages:
- opentelemetry-exporter-otlp (gRPC + HTTP/JSON)
- opentelemetry-exporter-prometheus
What's Changed
- [BUILD] Remove WITH_REMOVE_METER_PREVIEW, use WITH_ABI_VERSION_2 instead by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2370
- [SDK] Metrics ObservableRegistry Cleanup by @perhapsmaple in https://github.com/open-telemetry/opentelemetry-cpp/pull/2376
- [BUILD] Make WITH_OTLP_HTTP_SSL_PREVIEW mainstream by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2378
- [SDK] Creating DoubleUpDownCounter with no matching view by @lalitb in https://github.com/open-telemetry/opentelemetry-cpp/pull/2379
- [API] Add InstrumentationScope attributes in TracerProvider::GetTracer() by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2371
- Bump peter-evans/create-or-update-comment from 3.0.2 to 3.1.0 by @dependabot in https://github.com/open-telemetry/opentelemetry-cpp/pull/2381
- [BUILD] DLL export interface for Metrics by @perhapsmaple in https://github.com/open-telemetry/opentelemetry-cpp/pull/2344
- [BUILD] enum CanonicalCode names too generic... conflict with old C defines by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2385
- [BUILD] Fix cpack broken package version by @jafonso in https://github.com/open-telemetry/opentelemetry-cpp/pull/2386
- [API] Add a new AddLink() operation to Span by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2380
- [opentracing-shim] Add check for sampled context by @chusitoo in https://github.com/open-telemetry/opentelemetry-cpp/pull/2390
- [BUILD] Fix exported definitions when building DLL with STL by @perhapsmaple in https://github.com/open-telemetry/opentelemetry-cpp/pull/2387
- [BUILD] Add missing includes to runtime_context_test by @perhapsmaple in https://github.com/open-telemetry/opentelemetry-cpp/pull/2395
- [ADMIN] Add file .github/repository-settings.md by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2392
- [SDK] Fix GetLogger with empty library name by @ThomsonTan in https://github.com/open-telemetry/opentelemetry-cpp/pull/2398
- [TEST] Fix compiling problem and removed -DENABLE_TEST by @owent in https://github.com/open-telemetry/opentelemetry-cpp/pull/2401
- [BUILD] Check windows options are not passed to non-Windows build by @ThomsonTan in https://github.com/open-telemetry/opentelemetry-cpp/pull/2399
- [EXPORTER] Rework OTLP/HTTP and OTLP/GRPC exporter options by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2388
- Bump actions/github-script from 6 to 7 by @dependabot in https://github.com/open-telemetry/opentelemetry-cpp/pull/2403
- [Build] Update vcpkg to latest release by @ThomsonTan in https://github.com/open-telemetry/opentelemetry-cpp/pull/2412
- [SDK] Cardinality limits for metrics streams (Sync Instruments + Delta Temporality) by @lalitb in https://github.com/open-telemetry/opentelemetry-cpp/pull/2255
- [EXPORTER] Prometheus: Add unit to names, convert to word by @esigo in https://github.com/open-telemetry/opentelemetry-cpp/pull/2213
- [Metrics] Make context optional for histogram instruments in Metrics SDK by @ThomsonTan in https://github.com/open-telemetry/opentelemetry-cpp/pull/2416
- [BUILD] Fix references to trace namespace to be fully qualified by @bogdandrutu in https://github.com/open-telemetry/opentelemetry-cpp/pull/2422
- [BUILD] Bump third_party/googletest to same version as bazel by @bogdandrutu in https://github.com/open-telemetry/opentelemetry-cpp/pull/2421
- [BUILD] Remove defining NOMINMAX from api by @ThomsonTan in https://github.com/open-telemetry/opentelemetry-cpp/pull/2420
- [BUILD] 'uint8_t' not declared in this scope with gcc 13.2.1 by @Thomas-Barbier-1A in https://github.com/open-telemetry/opentelemetry-cpp/pull/2423
- [BUILD] Improve the handling of OPENTELEMETRY_HAVE_WORKING_REGEX. by @kylepl in https://github.com/open-telemetry/opentelemetry-cpp/pull/2430
- [SEMANTIC CONVENTIONS] Upgrade to semconv version 1.23.1 by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2428
- [BUILD] Use fully qualified references to trace/common namespace by @bogdandrutu in https://github.com/open-telemetry/opentelemetry-cpp/pull/2424
- [API] Create root span with active span by @lalitb in https://github.com/open-telemetry/opentelemetry-cpp/pull/2427
- [REMOVAL] Remove ZPAGES by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2433
- [RELEASE] Prepare release 1.13.0 by @marcalff in https://github.com/open-telemetry/opentelemetry-cpp/pull/2432
Important changes
-
[API] Add InstrumentationScope attributes in TracerProvider::GetTracer() #2371
- TracerProvider::GetTracer() now accepts InstrumentationScope attributes.
- Because this is an
ABI
breaking change, the fix is only available with theCMake
optionWITH_ABI_VERSION_2=ON
. - When building with
CMake
optionWITH_ABI_VERSION_1=ON
(by default) theABI
is unchanged, and the fix is not available.
-
[API] Add a new AddLink() operation to Span #2380
- New
API
Span::AddLink() adds a single link to a span. - New
API
Span::AddLinks() adds multiple links to a span. - Because this is an
ABI
breaking change, the fix is only available with theCMake
optionWITH_ABI_VERSION_2=ON
. - When building with
CMake
optionWITH_ABI_VERSION_1=ON
(by default) theABI
is unchanged, and the fix is not available.
- New
-
[BUILD] Make WITH_OTLP_HTTP_SSL_PREVIEW mainstream #2378
- The experimental
CMake
optionWITH_OTLP_HTTP_SSL_PREVIEW
is now promoted to stable. The default is changed toON
. - The experimental
CMake
optionWITH_OTLP_HTTP_SSL_TLS_PREVIEW
is now promoted to stable. The default is changed toON
. - These build options are scheduled to be removed by the next release, building without SSL/TLS will no longer be possible.
- The experimental
-
[EXPORTER] Rework OTLP/HTTP and OTLP/GRPC exporter options #2388
-
OtlpGrpcMetricExporterOptions
used to honor_TRACES_
environment variables, instead of_METRICS_
environment variables. - The implementation of
OtlpGrpcMetricExporterOptions
is now fixed. - Please check configuration variables,
to make sure
_METRICS_
variables are set as expected.
-
Breaking changes
-
[BUILD] Remove WITH_REMOVE_METER_PREVIEW, use WITH_ABI_VERSION_2 instead #2370
- The experimental
CMake
optionWITH_REMOVE_METER_PREVIEW
is removed, use optionWITH_ABI_VERSION_2
instead.
- The experimental
-
[BUILD] enum CanonicalCode names too generic... conflict with old C defines #2385
- Header file
opentelemetry/trace/canonical_code.h
is unused, and is now removed. - This header should not be included directly in an application. If this is the case, please remove any remaining include directives.
- Header file
-
[BUILD] Fix exported definitions when building DLL with STL #2387
- The MeterSelector, MeterSelectorFactory, InstrumentSelector, and InstrumentSelectorFactory APIs now use const std::string& instead of nostd::string_view for name, version and schema to maintain a single export definition for DLL.
-
[EXPORTER] Rework OTLP/HTTP and OTLP/GRPC exporter options #2388
-
OtlpGrpcLogRecordExporter
incorrectly usedOtlpGrpcExporterOptions
, which are options for traces and not logs. - This created a bug: the
OtlpGrpcLogRecordExporter
honors_TRACES_
environment variables, instead of_LOGS_
environment variables. -
OtlpGrpcLogRecordExporter
is changed to useOtlpGrpcLogRecordExporterOptions
instead, fixing the bug. - User code that initializes the SDK with a GRPC Log exporter,
and uses exporter options, should adjust to replace
OtlpGrpcExporterOptions
withOtlpGrpcLogRecordExporterOptions
. - Please check configuration variables,
to make sure
_LOGS_
variables are set as expected.
-
-
[REMOVAL] Remove ZPAGES #2433
- As announced in release 1.12.0, the deprecated ZPAGES exporter is now removed.
New Contributors
- @perhapsmaple made their first contribution in https://github.com/open-telemetry/opentelemetry-cpp/pull/2376
- @jafonso made their first contribution in https://github.com/open-telemetry/opentelemetry-cpp/pull/2386
- @Thomas-Barbier-1A made their first contribution in https://github.com/open-telemetry/opentelemetry-cpp/pull/2423
Full Changelog: https://github.com/open-telemetry/opentelemetry-cpp/compare/v1.12.0...v1.13.0