OpenTracing::DSL(3)
π 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
- alpine 3.24: perl-opentracing-doc 1.006-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms