Metric...:Stderr(3pm)

✨ NAME ✨

Metrics::Any::Adapter::Stderr β€” okay bestie, this one writes metrics straight to STDERR πŸ’…


🌸 SYNOPSIS 🌸

use Metrics::Any::Adapter 'Stderr';

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: this Metrics::Any adapter type takes all your observations of metric values and just... yeets them to the standard error stream. That's it, that's the whole vibe. It's giving "debugging bestie" energy, and it's genuinely helpful when you're debugging or otherwise testing code that reports metrics πŸ‘‘

Like, fr fr β€” if you set the METRICS_ANY_ADAPTER environment variable to configure the adapter, you get a whole metric log written to your terminal as a side-effect of running a unit test. Iconic:

$ METRICS_ANY_ADAPTER=Stderr perl -Mblib t/01test.t
Heads up though: this adapter type does not support batch mode reporting. Not me being dramatic, that's just the facts πŸ’€

πŸ’– AUTHOR πŸ’–

Paul Evans <leonerd@leonerd.org.uk>


And that's a wrap, bestie 🫢 this page came to you courtesy of the User Contributed Perl Documentation, perl v5.36.0, dated 2023-09-29. Slay, go log some metrics πŸ’…βœ¨

πŸ“¦ where this page comes from