OpenTelemetry - CNCF/opentelemetry-cpp: Release v1.12.0

Name: opentelemetry-cpp

Owner: OpenTelemetry - CNCF

Release: v1.12.0 release

Released: 2023-10-16

License: Apache-2.0

Release Assets:

v1.12.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

Important changes

  • [API] Add InstrumentationScope attributes in MeterProvider::GetMeter() #2224
    • MeterProvider::GetMeter() now accepts InstrumentationScope attributes.
    • Because this is an ABI breaking change, the fix is only available with the CMake option WITH_ABI_VERSION_2=ON.
    • When building with CMake option WITH_ABI_VERSION_1=ON (by default) the ABI is unchanged, and the fix is not available.

Breaking changes

  • [BUILD] Need fine-grained HAVE_CPP_STDLIB #2304

    • In CMAKE, the boolean option WITH_STL as changed to an option that accepts the values OFF, ON, CXX11, CXX14, CXX17, CXX20 and CXX23.
    • Applications makefiles that did not set WITH_STL need to use WITH_STL=OFF instead (this is the default).
    • Applications makefiles that did set WITH_STL need to use WITH_STL=ON instead, or may choose to pick a specific value.
    • In the API header files, the preprocessor symbol HAVE_CPP_STDLIB is no longer used.
    • Applications that did set HAVE_CPP_STDLIB before, need to set OPENTELEMETRY_STL_VERSION=<version> instead, to build with a specific STL version (2011, 2014, 2017, 2020, 2023).
    • The opentelemetry-cpp makefile no longer sets CMAKE_CXX_STANDARD by itself. Instead, the CMAKE_CXX_STANDARD and/or compiler options -stdc++ used by the caller are honored.
    • Applications that set neither CMAKE_CXX_STANDARD nor -stdc++ options may need to provide a C++ standard in their makefiles.
  • [REMOVAL] Drop C++11 support #2342

    • Building with C++11 is no longer supported.

New Contributors

Full Changelog: https://github.com/open-telemetry/opentelemetry-cpp/compare/v1.11.0...v1.12.0

To top