Skip to content

feat: Java SDK feature flags#8593

Draft
miguelhrocha wants to merge 2 commits intoPostHog:masterfrom
miguelhrocha:java-feature-flags
Draft

feat: Java SDK feature flags#8593
miguelhrocha wants to merge 2 commits intoPostHog:masterfrom
miguelhrocha:java-feature-flags

Conversation

@miguelhrocha
Copy link

@miguelhrocha miguelhrocha commented Jun 2, 2024

Changes

This PR is the documentation task assuming that the following PRs get merged:

  1. feat: feature flag polling for local evaluation (1/4) posthog-java#54
  2. feat: integrate feature flag poller to PostHog client (2/4) posthog-java#55

NOTE: this PR needs an update after the implementation of:

I will take care of it once the pull requests are merged.

It follows the pattern of the other SDKs by:

  • Adding snippets on how to use the posthog client for feature flag evaluation
  • Adding a section for feature flag variant retrieval

Additional changes

  • Now that the Java SDK has the concept of "personalApiKey", the PostHog client initialization snippet change to reflect that.

Screenshots

Screenshot 2024-06-02 at 16 47 19 Screenshot 2024-06-02 at 16 42 25 Screenshot 2024-06-02 at 16 43 01 Screenshot 2024-06-02 at 16 44 27 Screenshot 2024-06-02 at 16 44 41

@vercel
Copy link

vercel bot commented Jun 2, 2024

@miguelhrocha is attempting to deploy a commit to the PostHog Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant