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 dd0180a commit 04fbd09Copy full SHA for 04fbd09
1 file changed
packages/core/src/tracing/sentrySpan.ts
@@ -316,7 +316,14 @@ export class SentrySpan implements Span {
316
const client = getClient();
317
if (client) {
318
client.emit('spanEnd', this);
319
- client.emit('afterSpanEnd', this);
+ // Guarding sending standalone v1 spans as v2 streamed spans for now.
320
+ // Otherwise they'd be sent once as v1 spans and again as streamed spans.
321
+ // We'll migrate CLS and LCP spans to streamed spans in a later PR and
322
+ // INP spans in the next major of the SDK. At that point, we can fully remove
323
+ // standalone v1 spans <3
324
+ if (!this._isStandaloneSpan) {
325
+ client.emit('afterSpanEnd', this);
326
+ }
327
}
328
329
// A segment span is basically the root span of a local span tree.
0 commit comments