const tx = Sentry.startTransaction({ name: 'index', op: 'index', sampled: true });
const span = tx.startChild({ op: 'child' });
const span2 = span.startChild({ op: 'grandkid' });
span2.finish();
span.finish();
tx.finish();
None of the child spans are reported. Removing the sampled: true works as expected.
Package + Version
@sentry/browser@sentry/noderaven-jsraven-node(raven for node)Version:
Description
Originally reported at https://forum.sentry.io/t/child-spans-not-linked-to-parent/12854
Example to reproduce: https://codesandbox.io/s/wonderful-chaplygin-bwwjw?file=/src/App.js (thanks @dashed)
Given the code:
None of the child spans are reported. Removing the
sampled: trueworks as expected.