This document lists all the items currently deprecated in opentelemetry-cpp.
Deprecated items will be removed in the future.
See the deprecation-process
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Deprecation is announced as part of the migration to weaver:
Version:
release following opentelemetry-cpp 1.17.0Date:
Nov 9, 2024PR:
PR 3105
The header files for semantic conventions are generated automatically. The tooling to generate these files is changing:
- before, the build-tool repository was used
- now, the weaver repository is used
Changes in tooling allows to generate code that is better organized, with dedicated header files per group of semantic conventions, instead of a single header file for everything.
The following files:
api/include/opentelemetry/trace/semantic_conventions.h
sdk/include/opentelemetry/sdk/resource/semantic_conventions.h
are now deprecated.
They correspond to semantic conventions v1.27.0, and will no longer be maintained up to date.
These files will be removed in the future.
Two things have changed:
- the header file to use
- the symbol name to use.
Before, the semantic convention for url.full
was:
- declared in file
semantic_conventions.h
- declared as symbol
SemanticConventions::kUrlFull
Now, the url.full
convention, which is part or the url
group, is:
- declared in file
semconv/url_attributes.h
- declared as symbol
semconv::url::kUrlFull
Application code that uses semantic conventions must be adjusted accordingly.
In addition, semantic conventions that are not marked as stable
are generated in a different header file, placed under directory
incubating
, to better separate stable and non stable code.
For example, file semconv/incubating/url_attributes.h
defines semconv::url::kUrlDomain
,
which is not marked as stable in semconv v1.27.0
The following files:
api/include/opentelemetry/trace/semantic_conventions.h
sdk/include/opentelemetry/sdk/resource/semantic_conventions.h
will be removed.
The removal date is planned for July 1, 2025. This allows more than six months for applications to adjust.