Skip to content

Commit dfc0daa

Browse files
committed
fix(stdlib): enable event_span logging, even if sentry is used
In scenario's where tracing events are sampled, we now also drop all logs, reducing insight when an error happens in an unsampled trace.
1 parent 83e580d commit dfc0daa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/stdlib/src/events.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ export function eventStop(event) {
231231

232232
if (event._compasSentrySpan) {
233233
event._compasSentrySpan.end();
234-
} else if (isNil(event.rootEvent)) {
234+
}
235+
if (isNil(event.rootEvent)) {
235236
event.log.info({
236237
type: "event_span",
237238
aborted: !!event.signal?.aborted,

0 commit comments

Comments
 (0)