Closed essen closed 5 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!
) and we'll verify it.
ℹ️ Googlers: Go here for more info.
Thanks! I think we should also consider making the span_ctx
type it self #span_ctx{} | undefined
because undefined
is used to act as a noop trace and it would probably be best to force that all functions taking a spanctx support the noop trace. But this is good for now.
I wasn't sure about that but that's good to know. I can probably do a better patch next week if you want.
@essen if this not blocking, could wait I guess.
It's just Dialyzer complaining. Me I can wait, up to you if you want to merge earlier.
I was just going to merge this, don't know that switching span_ctx
itself to also be possibly undefined will be a quick change so may as well get this in.
But @essen has to accept the CLA first :).
I signed it!
It calls the internal newspan function which accepts undefined.
This is to make Dialyzer pass when calling the function directly to create a new trace that is independent from the one managed by
ocp
.