about summary refs log tree commit diff
path: root/src/logger/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* [APP-1173] Clean up env (#8701)Eric Bailey2025-07-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* invert flag for sending to statsig (#8431)hailey2025-05-301-3/+8
|
* Logger metrics (#7867)Eric Bailey2025-02-281-0/+21
| | | | | | | | | | | | | | | | | * 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-1/+4
| | | | | | | | | | | | | * 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)
* Logger improvements (#7729)Eric Bailey2025-02-281-214/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove enablement * Refactor context and filtering * Fix imports, simplify transports config * Migrate usages of debug context * Re-org, add colors and grouping to console logging * Remove temp default context * Remove manual prefix * Move colorizing out of console transport body * Reduce reuse * Pass through context * Ensure bitdrift is enabled in dev * Enable Sentry on web only * Clean up types * Docs * Format * Update tests * Clean up tests * No positional args * Revert Sentry changes * Clean up context, use it, pass metadata through to Bitdrift * Fix up debugging * Clean up metadata before passing to Bitdrift * Correct transports * Reserve context prop on metadata and include in transports * Update tests
* Remove the environment indirections (#7089)dan2024-12-131-9/+10
| | | | | * Use raw underlying globals for environment * Set dev EXPO_PUBLIC_ENV by exclusion
* Gate bitdrift integration (#7088)dan2024-12-131-3/+3
| | | | | | | | | * Move Statsig init call earlier * Gate Bitdrift init call * Remove IS_TEST env constant * Mock statsig
* Fix web build (#7069)dan2024-12-121-88/+6
| | | | | | | * Fix web build * Fix circular deps * Hoist log functions
* configure the bitdrift Capture SDK (#6979)Snow Pettersen2024-12-121-0/+24
| | | | | | | | | | | | | | | * configure bitdrift Capture SDK * remove console log * use the new url * add patch to fix devtool interaction * update patches * fix patch * add BITDRIFT_API_KEY to .env.example
* Clean up left nav on web (#5488)Eric Bailey2024-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Tweak nav item count style * Fix nav item icon width and alignment * Just refactor the thing * New compose button * Z index * Rounded * Tweak gradient * Tweak gradient * Tweak gradient * Solid * Adjust position of counter * Always a circle
* Filter errors that get sent to Sentry (#5247)Hailey2024-09-251-2/+8
|
* Increase log dump to 500, dump everything in there (#2268)Eric Bailey2023-12-211-5/+7
|
* Disable sentry in dev (#2128)Eric Bailey2023-12-071-2/+2
|
* Throttle non-critical Sentry messages (#2110)dan2023-12-061-2/+28
| | | | | * Throttle non-critical Sentry messages * Run all timers in tests
* Improve error handling in dev-only (#2095)Eric Bailey2023-12-051-3/+9
|
* Full send Sentry (#2018)Eric Bailey2023-11-281-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update build profiles, sentry config * Enable sentry * Ok actually enable in dev * Remove debug * Add TF build * Fix typo * Remove debug * Remove unecessary config * Fix typo * Set env in Expo * Remove scripts * Clarify * Replace invalid character * Align on release/dist * Add build version * Just use package version * Align dist
* Make sure logger serializes errors (#2001)Eric Bailey2023-11-271-4/+17
|
* Comment out sentry in prod for nowEric Bailey2023-11-041-1/+1
|
* Add new loggerEric Bailey2023-11-041-0/+290