Skip to content

Commit 8f55e3e

Browse files
authored
fix(ember/v7): Do not create rendering spans without transaction (#11750)
Backport of #11749
1 parent 9544973 commit 8f55e3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/ember/addon/instance-initializers/sentry-performance.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export function _instrumentEmberRouter(
176176
},
177177
op: 'ui.ember.transition',
178178
name: `route:${fromRoute} -> route:${toRoute}`,
179+
onlyIfParent: true,
179180
});
180181
});
181182

@@ -237,6 +238,7 @@ function _instrumentEmberRunloop(config: EmberSentryConfig): void {
237238
name: 'runloop',
238239
op: `ui.ember.runloop.${queue}`,
239240
startTimestamp: currentQueueStart,
241+
onlyIfParent: true,
240242
})?.end(now);
241243
}
242244
currentQueueStart = undefined;
@@ -310,6 +312,7 @@ function processComponentRenderAfter(
310312
op,
311313
origin: 'auto.ui.ember',
312314
startTimestamp: begin.now,
315+
onlyIfParent: true,
313316
})?.end(now);
314317
}
315318
}
@@ -394,6 +397,7 @@ function _instrumentInitialLoad(config: EmberSentryConfig): void {
394397
attributes: {
395398
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.ember',
396399
},
400+
onlyIfParent: true,
397401
startTimestamp,
398402
})?.end(endTimestamp);
399403
performance.clearMarks(startName);

0 commit comments

Comments
 (0)