Skip to content
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

fix(telemetry): Only flush after the root span finished #460

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Sep 15, 2023

This PR fixes something I missed in #459:

When using startSpan, the created span won't be finished if we flush inside the startSpan callback. Hence, it's not sent to Sentry, meaning erroneous transactions might be missing. This PR fixes this by moving everything around capturing exceptions and flushing outside of the startSpan callback. Also, there's no need to update the span status on error anymore since startSpan does that already internally.

#skip-changelog

@Lms24 Lms24 requested review from lforst and AbhiPrasad September 15, 2023 11:00
@Lms24 Lms24 self-assigned this Sep 15, 2023
@Lms24 Lms24 changed the title fix(telemetry): Only flash after the root span finished fix(telemetry): Only flush after the root span finished Sep 15, 2023
@Lms24 Lms24 merged commit 9c2009b into master Sep 15, 2023
@Lms24 Lms24 deleted the lms/fix-startSpan-flush branch September 15, 2023 11:09
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 this pull request may close these issues.

2 participants