<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># Perl - OpenTracing AutoScope

Making life easyier with 'auto-closing guarded scopes', instead of keeping track
manually.

## SYNOPSIS

```perl
MyPackage;

use OpenTracing::AutoScope;

sub foo {
    OpenTracing::AutoScope-&gt;start_guarded_span;
    
    ...
    
    return $foo
}
```

## DESCRIPTION

Using the C&lt;start_guarded_span&gt; class method is just a convenience around things
like:

```perl
use OpenTracing::GlobalTracer qw/$TRACER/;

sub foo {
    my $scope = $TRACER-&gt;start_active_span( 'MyPackage::foo' =&gt; { options };
    
    my $self = shift;
    
    ... # do stuff
    
    $scope-&gt;close
    
    return $foo
}
```

## LICENSE INFORMATION

This library is free software; you can redistribute it and/or modify it under
the terms of the Artistic License 2.0.

This package is distributed in the hope that it will be useful, but it is
provided â€œas isâ€‌ and without any express or implied warranties.

For details, see the full text of the license in the file LICENSE.
</pre></body></html>