'DBIx::OpenTracing' is Copyright (C) 2020, Perceptyx Inc, Szymon Nieznański
Automatically create OpenTracing spans around DBI queries
use DBI;
use DBIx::OpenTracing;
# use DBI as usual
my $dbh = DBI->connect(...);
$dbh->do(...);
DBIx::OpenTracing->disable();
$dbh->do($secret_query);
DBIx::OpenTracing->enable();
sub process_secrets {
DBIx::OpenTracing->suspend();
...
}
This module overrides L methods to create spans around all queries. It will also try to extract information like the query SQL and the number of rows returned. LOpenTracing::GlobalTracer is used to accomplish this, so make sure you set your tracer there.
'DBIx::OpenTracing' is Copyright (C) 2020, Perceptyx Inc
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.