Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(flags): Adds Growthbook integration #17440

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

Open
madhuchavva wants to merge 9 commits into getsentry:develop
base: develop
Choose a base branch
Loading
from madhuchavva:feat/growthbook-integration

Conversation

Copy link

@madhuchavva madhuchavva commented Aug 21, 2025
edited
Loading

Adds GrowthBook's integration for tracking feature evaluations.

This PR includes changes to wrap isOn, getFeatureValue and evalFeature methods, record results of type (booleans, strings, numbers, null, objects/arrays) and attach them to active span or current scope buffer for errors.

seer-by-sentry[bot] reacted with hooray emoji
@madhuchavva madhuchavva changed the title (削除) Feat/growthbook integration (削除ここまで) (追記) feat(flags): Adds Growthbook integration (追記ここまで) Aug 21, 2025
@madhuchavva madhuchavva marked this pull request as ready for review August 21, 2025 23:14
@Lms24 Lms24 requested a review from aliu39 August 25, 2025 10:45
Copy link
Author

@Lms24 Would you approve the workflows to run again?

aliu39 reacted with thumbs up emoji

Copy link
Member

aliu39 commented Sep 3, 2025

Tysm for the integration @madhuchavva !! Will take a look soon

record results of type (booleans, strings, numbers, null, objects/arrays)

For now Sentry is limiting all FF integrations to boolean only. We plan to rollout non-bool support later - would you mind removing those types from this PR?

madhuchavva reacted with thumbs up emoji

Copy link
Member

aliu39 commented Sep 3, 2025

Comment on lines +61 to +63
typeof result !== 'undefined' &&
typeof result !== 'function' &&
typeof result !== 'symbol'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
typeof result !== 'undefined' &&
typeof result !== 'function' &&
typeof result !== 'symbol'
typeof result === 'boolean'

Copy link
Member

Choose a reason for hiding this comment

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

Just wondering if we can support this in node too, by moving the integration to core - what are the differences in the GrowthBookClass template and evaluation methods? In https://docs.growthbook.io/lib/node it looks like they take a userContext arg - could we workaround this by handling additional args in the patcher?

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

@aliu39 aliu39 aliu39 left review comments

@AbhiPrasad AbhiPrasad Awaiting requested review from AbhiPrasad

@chargome chargome Awaiting requested review from chargome

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /