Skip to content

Commit b34e42d

Browse files
HazATkamilogorek
authored andcommitted
fix: Sampled spans
1 parent 8e8de11 commit b34e42d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/hub/src/hub.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,12 @@ export class Hub implements HubInterface {
414414
return undefined;
415415
}
416416

417-
if (span.sampled) {
418-
return undefined;
419-
}
420-
421417
if (!this.getClient()) {
422418
return undefined;
423419
}
424420

421+
// TODO: if sampled do what?
422+
425423
const finishedSpans = span.finishedSpans.filter(s => s !== span);
426424

427425
const eventId = this.captureEvent({

0 commit comments

Comments
 (0)