You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packageCAIW::t::MyModule;
...
use OpenTracing::WrapScope qw( doSomething);
subdoSomething {
say"Processing";
die"Ooops, something went wrong";
}
1;
Output:
$ perl openTracingWrapScopeExceptionHandling.pl
Processing
Died at /usr/local/share/perl/5.36.0/OpenTracing/WrapScope.pm line 163.
Expected output:
$ PERL_OPENTRACING_DEBUG= perl openTracingWrapScopeExceptionHandling.pl
Processing
Ooops, something went wrong at /usr/local/imta/lib/perl/CAIW/t/MyModule.pm line 13.
Same behaviour is observed when dying with an 'exception' object, instead of the expected object (when capturing $@) there is just the string "Died at /usr/local/share/perl/5.36.0/OpenTracing/WrapScope.pm line 163."
The text was updated successfully, but these errors were encountered:
Simple wrapped method:
Output:
Expected output:
Same behaviour is observed when dying with an 'exception' object, instead of the expected object (when capturing $@) there is just the string "Died at /usr/local/share/perl/5.36.0/OpenTracing/WrapScope.pm line 163."
The text was updated successfully, but these errors were encountered: