Skip to content

Commit 49d3bcf

Browse files
authored
Update sentry in extension to add traceability and version (RooCodeInc#2775)
* Add Sentry package * Setup Logger to use Error Service * Enhance traceability and message information
1 parent d36a44e commit 49d3bcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/error/ErrorService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import * as Sentry from "@sentry/browser"
2+
import * as pkg from "../../../package.json"
23

34
// Initialize sentry
45
Sentry.init({
56
dsn: "https://7936780e3f0f0290fcf8d4a395c249b7@o4509028819664896.ingest.us.sentry.io/4509052955983872",
7+
environment: process.env.NODE_ENV,
8+
release: `cline@${pkg.version}`,
9+
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
610
})
711

812
export class ErrorService {

0 commit comments

Comments
 (0)