Skip to content

Commit 2287985

Browse files
Copilotaepfli
andcommitted
Add JavaDoc deprecation notice for selector option
Co-authored-by: aepfli <[email protected]>
1 parent 0e8b0e6 commit 2287985

File tree

1 file changed

+9
-0
lines changed
  • providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd

1 file changed

+9
-0
lines changed

providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/FlagdOptions.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ public class FlagdOptions {
124124
fallBackToEnvOrDefault(Config.STREAM_RETRY_GRACE_PERIOD, Config.DEFAULT_STREAM_RETRY_GRACE_PERIOD);
125125
/**
126126
* Selector to be used with flag sync gRPC contract.
127+
* <p>
128+
* <b>Note:</b> This currently uses the gRPC request body approach. The preferred approach is to use
129+
* the {@code flagd-selector} header via a {@link ClientInterceptor}.
130+
* See the <a href="https://github.com/open-feature/java-sdk-contrib/tree/main/providers/flagd#selector-filtering-in-process-mode-only">selector migration guidance</a>
131+
* for details on the header-based approach.
132+
* <p>
133+
* Only applicable for in-process resolver mode.
134+
*
135+
* @see <a href="https://github.com/open-feature/flagd/issues/1814">flagd selector normalization issue</a>
127136
**/
128137
@Builder.Default
129138
private String selector = fallBackToEnvOrDefault(Config.SOURCE_SELECTOR_ENV_VAR_NAME, null);

0 commit comments

Comments
 (0)