@@ -63,19 +63,19 @@ export function lastEventId(): string | undefined {
63
63
}
64
64
65
65
/**
66
- * Configure teh current scope.
66
+ * Configure the current scope.
67
67
* @deprecated Use `getCurrentScope()` instead.
68
68
*/
69
69
export function configureScope ( callback : ( scope : Scope ) => void ) : void {
70
70
callback ( getCurrentScope ( ) ) ;
71
71
}
72
72
73
- /** Capture an exception to Sentry. */
73
+ /** Record an exception and send it to Sentry. */
74
74
export function captureException ( exception : unknown , hint ?: ExclusiveEventHintOrCaptureContext ) : string {
75
75
return getCurrentScope ( ) . captureException ( exception , parseEventHintOrCaptureContext ( hint ) ) ;
76
76
}
77
77
78
- /** Capture a message to Sentry. */
78
+ /** Record a message and send it to Sentry. */
79
79
export function captureMessage (
80
80
message : string ,
81
81
// eslint-disable-next-line deprecation/deprecation
@@ -89,13 +89,13 @@ export function captureMessage(
89
89
return getCurrentScope ( ) . captureMessage ( message , level , context ) ;
90
90
}
91
91
92
- /** Capture a generic event to Sentry. */
92
+ /** Capture a generic event and send it to Sentry. */
93
93
export function captureEvent ( event : Event , hint ?: EventHint ) : string {
94
94
return getCurrentScope ( ) . captureEvent ( event , hint ) ;
95
95
}
96
96
97
97
/**
98
- * Add a breadcrumb.
98
+ * Add a breadcrumb to the current isolation scope .
99
99
*/
100
100
export function addBreadcrumb ( breadcrumb : Breadcrumb , hint ?: BreadcrumbHint ) : void {
101
101
const client = getClient ( ) ;
@@ -127,7 +127,7 @@ export function addGlobalEventProcessor(eventProcessor: EventProcessor): void {
127
127
}
128
128
129
129
/**
130
- * Add an event processor to the current isolation scope..
130
+ * Add an event processor to the current isolation scope.
131
131
*/
132
132
export function addEventProcessor ( eventProcessor : EventProcessor ) : void {
133
133
getIsolationScope ( ) . addEventProcessor ( eventProcessor ) ;
0 commit comments