logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

"Metrics::Any::Adapter::Tee" - send metrics to multiple adapters

Arguments

       Each value passed in the import list should either be an adapter type string or an array reference
       containing the name and additional arguments.

       Adapters specified by string are split in the same way as Metrics::Any::Adapter splits the
       "METRICS_ANY_ADAPTER" environment variable; namely by parsing optional arguments after a colon, separated
       by commas or equals signs. E.g.

          "File:path=metrics.log"

       would be equivalent to the version given in the synopsis above.

Author

       Paul Evans <leonerd@leonerd.org.uk>

perl v5.36.0                                       2023-09-29                    Metrics::Any::Adapter::Tee(3pm)

Description

       This Metrics::Any adapter type acts as a container for multiple other adapters, allowing an application
       to report its metrics via multiple different mechanisms at the same time.

Name

       "Metrics::Any::Adapter::Tee" - send metrics to multiple adapters

Synopsis

          use Metrics::Any::Adapter 'Tee',
             "Prometheus",
             [ "File", path => "metrics.log" ],
             "Statsd";

See Also