This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
by default, don't panic unless there is no alternative #28
Comments
Fine by me, though I like the option to turn assertions on to catch "undefined" behaviour. |
@tschottdorf yes definitely... "default" is the key word here :) |
btw, I was imagining something like this:
I could also imagine |
I can't think of many situations where there is truly no alternative to an intentional crash. |
When there's a data race, there aren't many other sane options as sweeping under the rug is only going to make the bugs more subtle. But with the span pool disabled, (internal) data races aren't an issue any more. However, with the span pool on, I think it should panic when it seens an obviously reused span or the panic will eventually occur in a completely random place. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Monitoring should always be "first, do no harm".
Though it's formally undefined behavior in OpenTracing, I propose that the
basictracer
(and thusbasictracer-go
) default should be to never-panic unless there is truly no alternative; even if that means dropping data.(Loud logging messages are fine, though)
cc: @bg451 @yurishkuro @jmacd @tschottdorf
The text was updated successfully, but these errors were encountered: