OpenTracing::DSL(3)

πŸ“¦ version 1.006, in alpine 3.24

πŸ’… OpenTracing::DSL(3) πŸ’…

okay so bestie, this is the OpenTracing::DSL(3) page from User Contributed Perl Documentation β€” it's giving application tracing realness, and we're gonna read it together. ✨

🌸 NAME 🌸

OpenTracing::DSL β€” application tracing. That's the whole vibe: it's the tracing DSL, periodt. πŸ’–

✨ SYNOPSIS ✨

        use OpenTracing::DSL qw(:v1);

        trace {
         my ($span) = @_;
         print 'operation starts here';
         $span->add_tag(internal_details => '...');
         sleep 2;
         print 'end of operation';
        };

πŸŽ€ trace πŸŽ€

Takes a block of code and provides it with an OpenTracing::SpanProxy. Slay. 🫢

        trace {
         my ($span) = @_;
         $span->tag(
          'extra.details' => '...'
         );
        } operation_name => 'your_code';

Returns whatever your code did. literally whatever it did, that's what comes back. πŸ’…

πŸ’€ heads up: if the block of code throws an exception, that'll cause the span to be marked as an error.

πŸ‘‘ AUTHOR πŸ‘‘

Tom Molesworth <TEAM@cpan.org> β€” iconic.

🌈 LICENSE 🌈

Copyright Tom Molesworth 2018-2021. Licensed under the same terms as Perl itself.


that's the whole page, bestie 🫢 β€” this was OpenTracing::DSL(3) from perl v5.42.2, dated 2026-02-15. mwah πŸ’‹

πŸ“¦ where this page comes from