Skip to content

Manually sampling transactions result in missing child spans #3254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6 of 9 tasks
rhcarvalho opened this issue Feb 12, 2021 · 0 comments · Fixed by #3255
Closed
6 of 9 tasks

Manually sampling transactions result in missing child spans #3254

rhcarvalho opened this issue Feb 12, 2021 · 0 comments · Fixed by #3255

Comments

@rhcarvalho
Copy link
Contributor

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

 6.1.0

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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant