panic because nil
client in DynamicSamplingContextFromTransaction
#518
Labels
nil
client in DynamicSamplingContextFromTransaction
#518
Summary
In a context where we do not have initialized sentry, when finishing a transaction that have
Sampled = sentry.SampledFalse
will trigger a panic. I have a piece of code that conditionally force the sampling of a given transaction, this is working well but if I run my unit tests on the function that panics.In general, I think the SDK should not panic if sentry is not configured.
Steps To Reproduce
https://go.dev/play/p/vzesJ4l9TJa
Expected Behavior
No panic on
Finish()
SDK
sentry-go
version:v0.16.0
Sentry
Happy to shoot a PR if you quickly explain how would you like to handle that 🙏🏻
The text was updated successfully, but these errors were encountered: