Skip to content

Commit

Permalink
Misc code review comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Sep 15, 2021
1 parent 50d4cae commit 73480d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/browser/src/transports/fetch.ts
Expand Up @@ -163,6 +163,7 @@ export class FetchTransport extends BaseTransport {
}),
)
.then(undefined, reason => {
// It's either buffer rejection or any other xhr/fetch error, which are treated as NetworkError.
if (reason instanceof SentryError) {
this.recordLostEvent(Outcome.QueueOverflow, sentryRequest.type);
} else {
Expand Down
1 change: 1 addition & 0 deletions packages/browser/src/transports/xhr.ts
Expand Up @@ -64,6 +64,7 @@ export class XHRTransport extends BaseTransport {
}),
)
.then(undefined, reason => {
// It's either buffer rejection or any other xhr/fetch error, which are treated as NetworkError.
if (reason instanceof SentryError) {
this.recordLostEvent(Outcome.QueueOverflow, sentryRequest.type);
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/transport.ts
Expand Up @@ -65,7 +65,7 @@ export interface TransportOptions {
fetchParameters?: { [key: string]: string };
/** The envelope tunnel to use. */
tunnel?: string;
/** Automatically send SDK Client Report */
/** Send SDK Client Reports. Enabled by default. */
sendClientReports?: boolean;
/**
* Set of metadata about the SDK that can be internally used to enhance envelopes and events,
Expand Down

0 comments on commit 73480d5

Please sign in to comment.