-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REMOVAL] Remove build option WITH_DEPRECATED_SDK_FACTORY
#2716
Comments
For reference, from the DEPRECATED.md file published in 1.16.0: SDK ProviderFactory cleanupAnnouncement (SDK ProviderFactory cleanup)
This PR introduces changes to SDK ProviderFactory methods. Motivation (SDK ProviderFactory cleanup)SDK Factory methods for signal providers, such as:
currently returns a unique pointer on a API class. This is incorrect, the proper return type should be Scope (SDK ProviderFactory cleanup)All the current Create methods in:
are marked as deprecated, as they return an API object. Instead, another set of Create methods is provided, Both sets can not be exposed at the same time, When OPENTELEMETRY_DEPRECATED_SDK_FACTORY is defined, When OPENTELEMETRY_DEPRECATED_SDK_FACTORY is not defined, The scope of this deprecation and removal, Mitigation (SDK ProviderFactory cleanup)Build without defining flag OPENTELEMETRY_DEPRECATED_SDK_FACTORY. Existing code, such as: std::shared_ptr<opentelemetry::trace::TracerProvider> tracer_provider;
tracer_provider = opentelemetry::sdk::trace::TracerProviderFactory::Create(...); should be adjusted to: std::shared_ptr<opentelemetry::sdk::trace::TracerProvider> tracer_provider;
tracer_provider = opentelemetry::sdk::trace::TracerProviderFactory::Create(...); Planned removal (SDK ProviderFactory cleanup)Flag OPENTELEMETRY_DEPRECATED_SDK_FACTORY is introduced in release 1.16.0, This flag is meant to be temporary, and short lived. |
CMake option
WITH_DEPRECATED_SDK_FACTORY
was introduced in opentelemetry-cpp 1.16.0.This option is temporary, and used to avoid application code changes when upgrading to 1.16.0, to facilitate upgrade.
Remove option
WITH_DEPRECATED_SDK_FACTORY
for the next release.Code currently using
WITH_DEPRECATED_SDK_FACTORY=OFF
is ready and not affected.Code still using
WITH_DEPRECATED_SDK_FACTORY=ON
in release 1.16.0 will not build in 1.17.0. It must be fixed before upgrading to the next release.The text was updated successfully, but these errors were encountered: