continue-custom/core/util
Patrick Erichsen 85994118e8
feat: implement Sentry error tracking with privacy-first anonymization (#6881)
* feat: add sentry to core

* feat: implement comprehensive Sentry error tracking with privacy-first anonymization

- Add Sentry ErrorBoundary components following React best practices
- Implement shared anonymization logic between core and GUI environments
- Create organized sentry directory structure with clean exports
- Add Continue team member access control (@continue.dev email check)
- Preserve node_modules package names for debugging while anonymizing user paths
- Include comprehensive test coverage for all anonymization scenarios
- Set up source maps for readable production error stack traces
- Add browser-compatible hashing without crypto module dependency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: complete Sentry integration with GUI components and tests

- Add GUI TelemetryProviders with Sentry ErrorBoundary
- Create shared isContinueTeamMember utilities for both core and GUI
- Update all imports and dependencies for new sentry structure
- Add comprehensive test coverage and fix all TypeScript issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* fix: resolve GUI build errors by removing sentry index.ts and using specific imports

- Remove problematic index.ts that was pulling Node.js-specific Sentry code into browser bundle
- Update GUI to import specifically from anonymization.ts and constants.ts files
- Update core imports to use specific SentryLogger.ts import path
- GUI build now succeeds with proper source map upload to Sentry

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: move TelemetryProviders inside AuthProvider to fix test failures

- Move TelemetryProviders from main.tsx to Layout.tsx inside AuthProvider
- Fixes "useAuth must be used within an AuthProvider" error in tests
- TelemetryProviders now has access to auth context for Continue team member check
- GUI build and functionality remain working correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* merge main

* Update package.json

* fix tests

* fix errors

* Update extension.ts

* disable sentry in tests/local dev

* add additional error handling

* Update SentryLogger.ts

* remove global try/catch

* remove test code

* linting

* Update SentryLogger.ts

* more logs

* Update core.ts

* lower sampling rate

* fix tests

* feat: use `Logger`

* Update logger.ts

* Update logger.ts

Co-Authored-By: Claude <noreply@anthropic.com>

* lint fixes

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: rename logger.ts to Logger.ts for case sensitivity

This fixes TypeScript compilation errors in CI where the file
was tracked as lowercase logger.ts but referenced as Logger.ts
in imports.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* address ting-wai's feedback

* Update core.ts

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 16:54:21 -07:00
..
handlebars promptv1 render tests 2025-06-27 17:17:39 -07:00
sentry feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
ca.ts chore: apply eslint to vscode and core 2024-11-11 07:38:52 -08:00
chatDescriber.test.ts fix tests 2025-04-29 13:53:46 -07:00
chatDescriber.ts render title response 2025-04-29 11:34:48 -07:00
clipboardCache.ts fix debugger, clipboard, fix loading paradigm 2025-01-10 15:17:37 -08:00
constants.ts chat error popup v1: in chat 2024-12-11 10:34:12 -08:00
conversationCompaction.ts feat: compaction (#6662) 2025-07-17 16:22:46 -07:00
errors.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
extractMinimalStackTraceInfo.test.ts more core tests 2024-12-05 23:34:57 -08:00
extractMinimalStackTraceInfo.ts more core tests 2024-12-05 23:34:57 -08:00
fetchFavicon.test.ts more core tests 2024-12-05 23:34:57 -08:00
fetchFavicon.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
filesystem.ts Merge branch 'main' of github.com:continuedev/continue into jacob/enhancement/next-editable-region 2025-07-28 16:29:39 -07:00
findLast.ts context peek formatting and fix last index logic for tool truncation logic 2025-06-27 20:23:03 -07:00
generateRepoMap.test.ts fix: assign to contextLength basellm getter 2025-07-19 19:47:01 +02:00
generateRepoMap.ts Merge pull request #4587 from continuedev/dallin/cache-walkdir 2025-03-14 11:39:24 -07:00
GlobalContext.test.ts feat: add salvage functionality for security-sensitive values in GlobalContext 2025-08-14 13:28:39 -07:00
GlobalContext.ts Update GlobalContext.ts 2025-08-14 13:37:51 -07:00
grepSearch.ts fix numResults logic in grep output formatting 2025-06-19 18:21:03 -07:00
grepSearch.vitest.ts fix grep formatting tests to account for -- 2025-06-19 18:22:42 -07:00
history.test.ts fix tests 2024-12-06 19:15:53 -08:00
history.ts feat: compaction (#6662) 2025-07-17 16:22:46 -07:00
ideUtils.ts fix apply button 2025-02-07 18:11:17 -08:00
incrementalParseJson.test.ts incremental parse json test 2024-12-05 23:41:47 -08:00
incrementalParseJson.ts more tools 2024-11-19 22:19:43 -08:00
index.test.ts Fix syntax highlighting for .class files 2025-01-13 18:07:47 +01:00
index.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
isContinueTeamMember.ts feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
lcs.test.ts test: colocate tests in core 2024-08-16 10:35:40 -07:00
lcs.ts ⚡️ filter out extreme repetitions from autocomplete 2024-06-11 15:28:59 -07:00
Logger.ts feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
LruCache.test.ts core utils p4 2024-12-05 12:35:17 -08:00
LruCache.ts fix ImportDefinitionsService bug 2024-12-06 15:39:42 -08:00
merge.test.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
merge.ts 🚢 Preview (#1355) 2024-05-24 22:39:22 -07:00
messageContent.test.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
messageContent.ts Protect use cases where systemMessage is missing 2025-03-19 09:37:14 -04:00
ollamaHelper.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
parameters.ts move context restriction properties to model level autocompleteOptions 2025-08-08 11:50:14 -04:00
paths.ts corrected to checking against clean paths 2025-07-09 20:44:08 -07:00
pathToUri.ts use relative paths and fix URI resolution in codebase repo map retrieval 2025-03-10 21:25:04 -07:00
posthog.ts improved error logging 2025-06-10 13:23:46 -07:00
processTerminalBackgroundStates.test.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
processTerminalBackgroundStates.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
ranges.test.ts Fix ranges/union() 2024-11-30 11:17:40 +01:00
ranges.ts Fix ranges/union() 2024-11-30 11:17:40 +01:00
shellPath.ts run shell path async to avoid blocking config load 2025-07-03 23:07:15 -07:00
start_ollama.sh Add the ability to start Ollama when it's stopped 2025-01-10 18:57:27 +01:00
text.ts fix: handle numbers as well 2025-08-05 17:47:07 -07:00
text.vitest.ts test: add vitest for text.ts 2025-08-05 17:47:15 -07:00
treeSitter.ts test RootPathContextService 2025-06-10 11:26:53 +05:30
tts.ts imports 2024-12-05 21:53:09 -08:00
uri.test.ts uri util fixes 2025-01-03 10:10:25 +01:00
uri.ts fix input and vs context item insertion 2025-06-24 10:54:31 -07:00
url.ts can parse url 2025-02-27 15:03:27 -08:00
withExponentialBackoff.test.ts skip exponential backoff 2024-12-09 13:20:54 -08:00
withExponentialBackoff.ts merge main 2024-12-09 13:13:36 -08:00