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(flags): add Statsig browser integration #15319

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented Feb 6, 2025

Ref https://develop.sentry.dev/sdk/expected-features/#feature-flags. Adds an integration for tracking Statsig js-client flag evaluations, specifically the checkGate method which is used for boolean release flags.

Statsig references:

Our current FF integrations only support boolean flag values so "dynamic config", "experiments", and "layers" will not be tracked for now.

Closes https://github.com/getsentry/team-replay/issues/539

@aliu39 aliu39 requested review from billyvg and cmanallen February 6, 2025 05:31
@@ -0,0 +1,15 @@
export type FeatureGate = {
readonly name: string;
readonly value: boolean;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excluded props:
// readonly ruleID: string;
// readonly details: EvaluationDetails;
// readonly __evaluation: GateEvaluation | null;

Comment on lines +6 to +7
type EventNameToEventDataMap = {
gate_evaluation: { gate: FeatureGate };
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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