Closed eserte closed 5 months ago
In https://github.com/jjatria/perl-opentelemetry-sdk/blob/d4dae9a1715d8f0b142f235f255e45aff1d31fac/README.md?plain=1#L101 there's a syntax error: the signature should be opened with a (, not {
(
{
Signatures and p from (I think) Data::Printer are used here, which might not be obvious, so adding
p
Data::Printer
use feature 'signatures'; use Data::Printer;
would help here.
The $span->add_event call issues a warning:
$span->add_event
Odd name/value argument for subroutine 'OpenTelemetry::SDK::Trace::Span::add_event' at ...
Probably it should be ...->add_event(name => ...) or so.
...->add_event(name => ...)
Well spotted! I'll try to fix this in the next couple of days.
I pushed f3e03406416c2c to fix this. Thanks for the report!
In https://github.com/jjatria/perl-opentelemetry-sdk/blob/d4dae9a1715d8f0b142f235f255e45aff1d31fac/README.md?plain=1#L101 there's a syntax error: the signature should be opened with a
(
, not{
Signatures and
p
from (I think)Data::Printer
are used here, which might not be obvious, so addingwould help here.
The
$span->add_event
call issues a warning:Probably it should be
...->add_event(name => ...)
or so.