File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1212
1313- Automatically detect Release name and version for Expo Web ([ #4967 ] ( https://github.com/getsentry/sentry-react-native/pull/4967 ) )
1414
15+ ### Changes
16+
17+ - Expose ` featureFlagsIntegration ` ([ #4984 ] ( https://github.com/getsentry/sentry-react-native/pull/4984 ) )
18+
1519### Breaking changes
1620
1721- Tags formatting logic updated ([ #4965 ] ( https://github.com/getsentry/sentry-react-native/pull/4965 ) )
Original file line number Diff line number Diff line change @@ -56,7 +56,12 @@ export {
5656 withProfiler ,
5757} from '@sentry/react' ;
5858
59- export { logger , consoleLoggingIntegration } from '@sentry/browser' ;
59+ export {
60+ logger ,
61+ consoleLoggingIntegration ,
62+ featureFlagsIntegration ,
63+ type FeatureFlagsIntegration ,
64+ } from '@sentry/browser' ;
6065
6166export * from './integrations/exports' ;
6267
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ const reactNavigationIntegration = Sentry.reactNavigationIntegration({
5858 useDispatchedActionData : true ,
5959} ) ;
6060
61+ const sampleFeatureFlagsIntegration = Sentry . featureFlagsIntegration ( ) ;
62+ sampleFeatureFlagsIntegration . addFeatureFlag ( 'sample-test-flag' , true ) ;
63+
6164Sentry . init ( {
6265 // Replace the example DSN below with your own DSN:
6366 dsn : getDsn ( ) ,
@@ -149,6 +152,7 @@ Sentry.init({
149152 } ,
150153 } ) ,
151154 Sentry . extraErrorDataIntegration ( ) ,
155+ sampleFeatureFlagsIntegration ,
152156 ) ;
153157 return integrations . filter ( i => i . name !== 'Dedupe' ) ;
154158 } ,
You can’t perform that action at this time.
0 commit comments