Open vanHoesel opened 2 years ago
This would be very convenient, but we should strife for a non-invasive approach that does not require to modify code and subroutines, but creates OpenTracing wrappers around a subroutine.
OpenTracing::WrapSub
To have access to the Global Tracer is a must when a huge chunk of code that has no subs, and want to split it in segments, and trace each part of it separately (for timing purposes or large if-else codeblocks). Then a follows_from
would be convenient to have, but requires more deeper OpenTracing programming.
instead of adding the
use OpenTracing::GlobalTracer
to all and ever place where one desires to have the Tracer, it would be way more convenient that on could simply do anywhere:One can of course always use the
GlobalTracer
, which should be returning the same object.