Skip to content
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

feat: Java SDK feature flags #8593

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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