@@ -94,7 +94,6 @@ The following legacy CMake option names are deprecated:
9494| ` WITH_OTLP_GRPC_SSL_MTLS_PREVIEW ` | ` OTELCPP_WITH_OTLP_GRPC_SSL_MTLS_PREVIEW ` |
9595| ` WITH_OTLP_HTTP ` | ` OTELCPP_WITH_OTLP_HTTP ` |
9696| ` WITH_OTLP_HTTP_COMPRESSION ` | ` OTELCPP_WITH_OTLP_HTTP_COMPRESSION ` |
97- | ` WITH_OTLP_RETRY_PREVIEW ` | ` OTELCPP_WITH_OTLP_RETRY_PREVIEW ` |
9897| ` WITH_OTLP_UTF8_VALIDITY ` | ` OTELCPP_WITH_OTLP_UTF8_VALIDITY ` |
9998| ` WITH_PROMETHEUS ` | ` OTELCPP_WITH_PROMETHEUS ` |
10099| ` WITH_RESOURCE_DETECTORS_PREVIEW ` | ` OTELCPP_WITH_RESOURCE_DETECTORS_PREVIEW ` |
@@ -119,54 +118,6 @@ both names are set, the `OTELCPP_` name takes precedence.
119118The legacy CMake option names will be removed in a future release. The
120119replacement names are not affected by this removal.
121120
122- ### CMake OTELCPP_WITH_OTLP_RETRY_PREVIEW
123-
124- #### Announcement (OTELCPP_WITH_OTLP_RETRY_PREVIEW)
125-
126- The CMake compile flag ` OTELCPP_WITH_OTLP_RETRY_PREVIEW ` , formerly named
127- ` WITH_OTLP_RETRY_PREVIEW ` , is deprecated by:
128-
129- * Enable WITH_OTLP_RETRY_PREVIEW by default
130- [ #3953 ] ( https://github.com/open-telemetry/opentelemetry-cpp/pull/3953 )
131-
132- #### Motivation (OTELCPP_WITH_OTLP_RETRY_PREVIEW)
133-
134- Flags like ` OTELCPP_WITH_OTLP_RETRY_PREVIEW ` are used to conditionally compile
135- new features when they are introduced in the code base.
136-
137- Now that this feature is stable, conditional compilation is no longer
138- necessary.
139-
140- #### Scope (OTELCPP_WITH_OTLP_RETRY_PREVIEW)
141-
142- Remove the ` OTELCPP_WITH_OTLP_RETRY_PREVIEW ` compilation flag and its legacy
143- name ` WITH_OTLP_RETRY_PREVIEW ` from CMake.
144-
145- Remove the ` ENABLE_OTLP_RETRY_PREVIEW ` preprocessor condition from C++.
146-
147- #### Mitigation (OTELCPP_WITH_OTLP_RETRY_PREVIEW)
148-
149- Applications built with ` OTELCPP_WITH_OTLP_RETRY_PREVIEW=ON ` or
150- ` WITH_OTLP_RETRY_PREVIEW=ON ` need to:
151-
152- * remove the preview flag from CMake scripts
153-
154- Applications built with ` OTELCPP_WITH_OTLP_RETRY_PREVIEW=OFF ` or
155- ` WITH_OTLP_RETRY_PREVIEW=OFF ` need to:
156-
157- * remove the preview flag from CMake scripts
158- * use ` retry_policy_max_attempts ` = 0 in the OTLP exporter options.
159-
160- For Bazel, no compilation option exists,
161- the bazel build enables unconditionally ENABLE_OTLP_RETRY_PREVIEW.
162-
163- Make sure to properly initialize ` retry_policy_max_attempts `
164- to enable or disable the retry feature.
165-
166- #### Planned removal (OTELCPP_WITH_OTLP_RETRY_PREVIEW)
167-
168- This compilation flag will be removed after October 1st, 2026.
169-
170121### CMake OTELCPP_WITH_OTLP_GRPC_SSL_MTLS_PREVIEW
171122
172123#### Announcement (OTELCPP_WITH_OTLP_GRPC_SSL_MTLS_PREVIEW)
0 commit comments