about summary refs log tree commit diff
path: root/src/lib/statsig/statsig.tsx
Commit message (Collapse)AuthorAgeFilesLines
* Add displayName to contexts (#8814)Samuel Newman2025-08-141-0/+1
|
* [APP-1173] Clean up env (#8701)Eric Bailey2025-07-301-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Clean up env files * Use new env in Sentry setup file * Use new env in Bitdrift setup file * Use new env in chat proxy header * Prefix Bitdrift key with EXPO_PUBLIC * Deprecate SENTRY_RELEASE since we use package.json now * Use existing EXPO_PUBLIC_BUNDLE_IDENTIFIER short commit has as Sentry dist value * Fix missing bundle identifier for Render deploys * Deprecate SENTRY_DIST in favor of EXPO_PUBLIC_BUNDLE_IDENTIFIER * Prefix SENTRY_DSN with EXPO_PUBLIC to match others * Remove debugging field * Replace NODE_ENV in places where its safe * Self review * Properly patch Sentry package * Echo variables to .env in Dockerfile instead of passing to shell script * Make sure EXPO_PUBLIC_ENV is set for web container builds * Update IS_TESTFLIGHT to include testflight-android * Slice bundle hash to match other platforms, needed for render.com deployments * [APP-1331] Migrate `app-info` to new env (#8703) * Move env files into directory with platform specific files * Migrate usages of app-info to new env * Fix bad import * Update BUNDLE_DATE format comment * Trim RENDER_GIT_COMMIT to first 7 to match --short sha * Clarify build process env vars and ensure they are explicitly passed in * Revert Sentry patch as a result of prev commit * Update webpack Sentry dist value based on prev commits * Add PACKAGE_VERSION and replace in statsig to fix conflict * Fix render substitution syntax * Remove invalid syntax * Remove unnecessary testflight check * Just use long commit hash * Slice full hash for display in app * Fix missing space in ios workflow * Pass in sentry CLI env vars, align matching values * Align on RELEASE_VERSION * Add new env setup to missed OTA spot * Update webpack to use same SENTRY_RELEASE var * Just fallback to package version for Render deploys * Remove TF check for BUNDLE_DATE * Set EXPO_PUBLIC_ENV for bundle update * Consistent naming "Env" * Add comment * Use RELEASE_VERSION instead of package.json * Update PR comment CI
* Include app version in metrics (#8699)Eric Bailey2025-07-231-0/+3
|
* Upgrade prettier to 3.6 (#8558)Samuel Newman2025-06-231-5/+5
| | | | | | | * upgrade prettier * run prettier * more files
* Logger metrics (#7867)Eric Bailey2025-02-281-8/+27
| | | | | | | | | | | | | | | | | * Adjust datalake abstraction (cherry picked from commit 8ba6a8d45b1bd5698afbd06d9e858a91789f0ea6) * Just be really really specific (cherry picked from commit 920198959659329a7f7f7282a1293aaad198d8e3) * Add metric method to logger, replace datalake calls with new method (cherry picked from commit 7a026bbeae75514b64f928d7ff59707c518fd5e5) * Clarify types (cherry picked from commit 422b150deb158a70ef37e8a456d91bf26cd0b1bc)
* Colocate bitdrift in logger, use logger for transport (#7868)Eric Bailey2025-02-281-6/+1
| | | | | | | | | | | | | * Colocate bitdrift in logger, use logger for transport (cherry picked from commit cdd6941fd7f6de9829d61712340a30a55936d2ee) * Fix mocks, format (cherry picked from commit 9de88660c6217ebe7f83e3abfb198f85e26d9c53) * Ok I guess mocks dir doesn't work (cherry picked from commit 9f37e52011d2794ad8fcd732eb26558e9f0ef42c)
* use did for userID (#7647)Hailey2025-02-041-6/+1
|
* Reenable bitdrift (#7405)Snow Pettersen2025-01-211-4/+2
|
* Temporarily remove Bitdrift (#7173)dan2024-12-191-2/+4
| | | | | * Temporarily remove Bitdrift * Rm plugin
* Pipe statsig events to logger (#7141)dan2024-12-171-3/+23
| | | | | | | | | | | * Pipe statsig events to logger * Log rich objects to bitdrift * Fix tests * Consolidate mocks, fix tests * Reduce log trash on native
* Gate bitdrift integration (#7088)dan2024-12-131-3/+2
| | | | | | | | | * Move Statsig init call earlier * Gate Bitdrift init call * Remove IS_TEST env constant * Mock statsig
* [Statsig] Remove client downsampling (#6153)Hailey2024-11-151-39/+3
|
* tweak downsample rate to 1% (#5836)Hailey2024-10-181-2/+2
| | | | Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* [Statsig] Add more events to downsample, increase downsample rate (#5198)Hailey2024-09-071-3/+14
| | | | | | | | | * add some events for sampling * include downsample rate in metadata * fix metadata logic * uncomment debug
* Don't log extra background events (#5134)dan2024-09-041-4/+4
|
* referrers for all platforms (#4514)Hailey2024-07-111-21/+0
|
* [Statsig] Send Discover aggregate interactions (#4599)dan2024-06-221-0/+3
|
* Add `native_pwi_disabled` feature gate experiment (#4507)Eric Bailey2024-06-171-2/+8
| | | | | * Add native_pwi_disabled feature gate experiment * Use const
* Try/catch URL parsing of referrer (#4511)Samuel Newman2024-06-131-6/+13
|
* add `document.referrer` to statsig custom (#4509)Hailey2024-06-131-0/+14
| | | | | | | | | | | | | | | * add referrer to statsig custom dont include referrer if hostname is bsky.app save add `document.referrer` to statsig custom * add a hostname field * account for ssr * account for ssr
* Don't log downsample warning when unnecessary (#4291)Hailey2024-05-311-7/+10
| | | | | | | | | | | * fix log use process.env ensure the log happens regardless of `isDownsampledSession` fix log * oops, revert test
* [Statsig] Sample noisy events (#4288)dan2024-05-301-3/+17
| | | | | | | * Sample state:background and state:foreground * Sample feed events * Add DEV protection against forgetting to add events to the list
* Add `bundleDate`, `bundleIdentifier` to `StatsigUser` (#4199)Hailey2024-05-231-1/+5
| | | | | | | | | | | | | * record event for fetched ota update * Revert "record event for fetched ota update" This reverts commit 4b49efe036c0c9605eabf1d5715586d093d60e9e. * add `bundleDate` to `StatsigUser` * include `bundleIdentifier` too * move to `custom`
* [Statsig] Sample router events (#4143)dan2024-05-201-0/+6
|
* [Statsig] Fix exposure logging for reduced onboarding (#4131)dan2024-05-211-5/+14
| | | | | | | * Add dangerouslyDisableExposureLogging option * Rename onboarding gate to v2 * Disable exposure logging for onboarding in PostFeed query
* Add better onboard testing (#4007)Paul Frazee2024-05-131-0/+22
|
* [Statsig] Send locale info (#3621)dan2024-04-191-0/+6
|
* [Statsig] Slightly block the UI on gates (#3608)dan2024-04-181-0/+26
|
* [Statsig] Prefetch configs for other accounts (#3607)dan2024-04-181-21/+46
| | | | | | | | | | | | | * Poll both current and other accounts * Make createStatsigOptions a function * Pass prefetchUsers with the initial request * Add initializeCalled check * Be resilient to object identity changes * Decrease poll interval to 1 minute
* Add our own cache in front of Statsig (#3604)dan2024-04-181-32/+45
|
* [Statsig] Make gate checks lazily (#3594)dan2024-04-181-14/+18
|
* Make ref_ always strings (#3583)dan2024-04-161-6/+18
| | | | | * Make ref_ always strings * Harden types
* Always send ref_ params (#3582)dan2024-04-161-4/+4
|
* [Statsig] Send ref source (#3531)dan2024-04-131-0/+11
| | | | | | | * [Statsig] Send ref source * Add is web check * Fix types
* Use getSuggestions endpoint behind the gate (#3499)dan2024-04-121-1/+4
| | | | | | | | | * Move suggested follows out of the component * Add new suggestions implementation * Put new endpoint behind the gate * Make bottom less weird
* [Statsig] Mark Testflight as staging tier (#3470)dan2024-04-101-1/+7
|
* [Statsig] Typecheck gates (#3467)dan2024-04-101-1/+2
| | | | | | | * Typecheck gates * Lint against untyped useGate() * Alphabetic
* [Statsig] Track like/follow metadata (#3435)dan2024-04-081-0/+8
| | | | | | | | | | | * Track becoming mutuals * Track poster/liker status * Track post and followee clout * Track follower and liker clout * Extract utility
* Auto-expand follow suggestions on web (#3432)dan2024-04-081-0/+4
|
* Use logger.error instead of rethrow (#3323)dan2024-03-211-4/+2
|
* [Statsig] Protect against early logEvent call crashing (#3315)dan2024-03-211-5/+15
| | | | | * [Statsig] Check if initialized * Never interrupt the caller
* [Statsig] Onboarding and routing events (#3302)dan2024-03-211-3/+10
|
* [Statsig] Track active time (#3289)dan2024-03-191-1/+10
|
* [Statsig] Include OS and track app state changes (#3273)dan2024-03-191-1/+19
| | | | | * Include platform in identify * Track back/foregrounding
* [Statsig] Track likes, reposts, follows (#3195)dan2024-03-131-3/+5
| | | | | | | | | | | | | * [Statsig] Track likes * Move tracking to intent * Track repost/unrepost * Track profile follows/unfollows * Less copy paste * Reorder
* Send route name with Statsig events (#3194)dan2024-03-131-5/+22
| | | | | * Add types to Statsig events * Send route name with events
* Poll Statsig for config changes (#3158)dan2024-03-081-0/+12
|
* Enable gating and experimentation on native, send init event (#3149)dan2024-03-081-5/+57
| | | | | * Add the mobile fork * Add init event
* Initial feature gating and A/B testing integration (#3122)dan2024-03-061-0/+11
* Add statsig dependency * Add SDK provider * Move to separate file, add tier and hashing * Disable local storage for now * Add initial gate testing fixture * Fork for web just in case * More WIP * wip * Rm test gate * Add shim on native * Clarify