src/Event/Listener/Metric/SendMetricListenerProvider.php
public function provideListeners(ListenerAcceptorInterface $listenerAcceptor)
    {
        $listenerAcceptor->addListener(DaemonStarted::NAME, new SendMetricOnDaemonStarted($this->metricService));
        $listenerAcceptor->addListener(DaemonStopped::NAME, new SendMetricOnDaemonStopped($this->metricService));
        $listenerAcceptor->addListener(MessageReceived::NAME, new SendMetricOnMessageReceived($this->metricService));

        $sendMetricOnMessageConsumed = new SendMetricOnMessageConsumed($this->metricService);
        $listenerAcceptor->addListener(MessageReceived::NAME, $sendMetricOnMessageConsumed);
        $listenerAcceptor->addListener(MessageConsumed::NAME, $sendMetricOnMessageConsumed);
    }
public function provideListeners(ListenerAcceptorInterface $listenerAcceptor)
    {
        $listenerAcceptor->addListener(DaemonStarted::NAME, new SendMetricOnDaemonStarted($this->metricService));
        $listenerAcceptor->addListener(DaemonStopped::NAME, new SendMetricOnDaemonStopped($this->metricService));
        $listenerAcceptor->addListener(MessageReceived::NAME, new SendMetricOnMessageReceived($this->metricService));

        $sendMetricOnMessageConsumed = new SendMetricOnMessageConsumed($this->metricService);
        $listenerAcceptor->addListener(MessageReceived::NAME, $sendMetricOnMessageConsumed);
        $listenerAcceptor->addListener(MessageConsumed::NAME, $sendMetricOnMessageConsumed);
    }
@param ListenerAcceptorInterface $listenerAcceptor

@return ListenerProviderInterface|void