p('https://httpbin.org/delay/1') ->then( sub { $c->render( json => shift->result->json ); }); }; # Errors will be correctly captured in the span ge