Skip to content

Commit 021e6f6

Browse files
Lms24JPeer264
andauthored
Apply suggestions from code review
Co-authored-by: Jan Peer Stöcklmair <jan.peer@sentry.io>
1 parent faae067 commit 021e6f6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/browser/src/integrations/spanstreaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const spanStreamingIntegration = defineIntegration(() => {
1414
name: 'SpanStreaming',
1515

1616
beforeSetup(client) {
17-
// If users only set spanstreamingIntegration, without traceLifecycle, we set it to "stream" for them.
17+
// If users only set spanStreamingIntegration, without traceLifecycle, we set it to "stream" for them.
1818
// This avoids the classic double-opt-in problem we'd otherwise have in the browser SDK.
1919
const clientOptions = client.getOptions();
2020
if (!clientOptions.traceLifecycle) {

packages/core/src/tracing/sentrySpan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export class SentrySpan implements Span {
342342
return;
343343
} else if (client && hasSpanStreamingEnabled(client)) {
344344
// TODO (spans): Remove standalone span custom logic in favor of sending simple v2 web vital spans
345-
client?.emit('afterSegmentSpanEnd', this);
345+
client.emit('afterSegmentSpanEnd', this);
346346
return;
347347
}
348348

0 commit comments

Comments
 (0)