Skip to content

Commit d57996f

Browse files
mydealforst
andauthored
Apply suggestions from code review (typos)
Co-authored-by: Luca Forstner <[email protected]>
1 parent a5037c4 commit d57996f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/node-experimental/src/integrations/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class Http implements Integration {
130130
requestHook: (span, req) => {
131131
this._updateSpan(span, req);
132132

133-
// Update the isolation scope, isolation this request
133+
// Update the isolation scope, isolate this request
134134
if (getSpanKind(span) === SpanKind.SERVER) {
135135
setIsolationScope(getIsolationScope().clone());
136136
}

packages/node-experimental/src/sdk/api.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ export function lastEventId(): string | undefined {
6363
}
6464

6565
/**
66-
* Configure teh current scope.
66+
* Configure the current scope.
6767
* @deprecated Use `getCurrentScope()` instead.
6868
*/
6969
export function configureScope(callback: (scope: Scope) => void): void {
7070
callback(getCurrentScope());
7171
}
7272

73-
/** Capture an exception to Sentry. */
73+
/** Record an exception and send it to Sentry. */
7474
export function captureException(exception: unknown, hint?: ExclusiveEventHintOrCaptureContext): string {
7575
return getCurrentScope().captureException(exception, parseEventHintOrCaptureContext(hint));
7676
}
7777

78-
/** Capture a message to Sentry. */
78+
/** Record a message and send it to Sentry. */
7979
export function captureMessage(
8080
message: string,
8181
// eslint-disable-next-line deprecation/deprecation
@@ -89,13 +89,13 @@ export function captureMessage(
8989
return getCurrentScope().captureMessage(message, level, context);
9090
}
9191

92-
/** Capture a generic event to Sentry. */
92+
/** Capture a generic event and send it to Sentry. */
9393
export function captureEvent(event: Event, hint?: EventHint): string {
9494
return getCurrentScope().captureEvent(event, hint);
9595
}
9696

9797
/**
98-
* Add a breadcrumb.
98+
* Add a breadcrumb to the current isolation scope.
9999
*/
100100
export function addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void {
101101
const client = getClient();
@@ -127,7 +127,7 @@ export function addGlobalEventProcessor(eventProcessor: EventProcessor): void {
127127
}
128128

129129
/**
130-
* Add an event processor to the current isolation scope..
130+
* Add an event processor to the current isolation scope.
131131
*/
132132
export function addEventProcessor(eventProcessor: EventProcessor): void {
133133
getIsolationScope().addEventProcessor(eventProcessor);

packages/node-experimental/src/utils/contextData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function getScopesFromContext(context: Context): CurrentScopes | undefine
1414
}
1515

1616
/**
17-
* Set the current scopes on an OTEL context..
17+
* Set the current scopes on an OTEL context.
1818
* This will return a forked context with the Propagation Context set.
1919
*/
2020
export function setScopesOnContext(context: Context, scopes: CurrentScopes): Context {

0 commit comments

Comments
 (0)