Open
Description
I have to redefine the custom metrics specified within the .blackfire.yaml
whenever I need to use custom code for that.
But, I don't need to provide any authentification. I would expect some kind of "all or nothing" behaviour, requiring me to redefine everything, or nothing.
use Blackfire\Client;
use Blackfire\Probe;
use Blackfire\Profile;
use Blackfire\Profile\Configuration;
use Blackfire\Profile\Metric;
// ...
$this->blackfireClient = new Client();
$this->config = new Configuration();
$this->config->defineMetric((new Metric(
'my_metric',
['=App\\FooBundle\\Entity\\Repository\\BarRepository::findStuff']
)));
Metadata
Assignees
Labels
No labels
Activity