Consumers Monitoring

Consumers and CLI commands can be monitored.

Displaying CLI Monitoring Data

The consumers and CLI command monitoring data can be displayed toggling the Web/CLI dropdown.

/docs/consumer_monitoring.gif

Enabling CLI Monitoring

Instrumentation of CLI commands and consumers needs to be manually triggered:

PHP Application

1
2
3
4
5
6
7
// As of Blackfire PHP Probe 1.62.0
\BlackfireProbe::startTransaction();
\BlackfireProbe::setTransactionName('My CLI command');

// code

\BlackfireProbe::stopTransaction();

Python Application

1
2
3
4
5
6
7
8
9
from blackfire import apm

# As of Blackfire Python Probe 1.6.1
apm.start_transaction()
apm.set_transaction_name('My CLI command')

# code

apm.stop_transaction()

CLI transactions should be manually named either before, during, or after the Instrumentation.

Integrations

Blackfire supports a number of native integrations with third-party tools. Please check their dedicated documentation: