We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8e780 commit c5ce80aCopy full SHA for c5ce80a
packages/core/src/tracing/sentrySpan.ts
@@ -429,10 +429,7 @@ function sendSpanEnvelope(envelope: SpanEnvelope): void {
429
return;
430
}
431
432
- const transport = client.getTransport();
433
- if (transport) {
434
- transport.send(envelope).then(null, reason => {
435
- DEBUG_BUILD && logger.error('Error while sending span:', reason);
436
- });
437
- }
+ // sendEnvelope should not throw
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
+ client.sendEnvelope(envelope);
438
0 commit comments