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

Return early if Sentry.with_child_span returns nil #4828

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

patch0
Copy link
Contributor

@patch0 patch0 commented Feb 7, 2024

Closes #4827

This adds in a guard clause to make sure we don't run any instrumentation if Sentry is initialized but with_child_span returns a nil. This can happen if Sentry is configured but no DSN is set.

@patch0 patch0 changed the title Return early if with_child_span returns nil Return early if Sentry.with_child_span returns nil Feb 7, 2024
@rmosolgo rmosolgo added this to the 2.2.7 milestone Feb 7, 2024
@rmosolgo
Copy link
Owner

rmosolgo commented Feb 7, 2024

Thanks for taking care of this fix!

@rmosolgo rmosolgo merged commit 35b7851 into rmosolgo:master Feb 7, 2024
11 of 12 checks passed
@rmosolgo rmosolgo modified the milestones: 2.2.7, 2.2.8 Feb 7, 2024
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.

Sentry tracing fails when Sentry is configured but no DSN is set
2 participants