src/DataCollector/StatsdDataCollector.php
public function onKernelResponse($event)
    {
        if (HttpKernelInterface::MASTER_REQUEST == $event->getRequestType()) {
            foreach ($this->statsdClients as $clientName => $client) {
                $clientInfo = [
                    'name'       => $clientName,
                    'operations' => []
                ];
                foreach ($client->getToSend() as $operation) {
                    if ($operation) {
                        $this->data['operations']++;
                        $message = $operation['message'];

                        $clientInfo['operations'][] = [
                            'server' => $operation['server'],
                            'node'   => $message->getNode(),
                            'value'  => $message->getValue(),
                            'sample' => $message->getSampleRate(),
                            'unit'   => $message->getUnit()
                        ];
                    }
                }
                $this->data['clients'][] = $clientInfo;
            }
        }
    }
public function onKernelResponse($event)
    {
        if (HttpKernelInterface::MASTER_REQUEST == $event->getRequestType()) {
            foreach ($this->statsdClients as $clientName => $client) {
                $clientInfo = [
                    'name'       => $clientName,
                    'operations' => []
                ];
                foreach ($client->getToSend() as $operation) {
                    if ($operation) {
                        $this->data['operations']++;
                        $message = $operation['message'];

                        $clientInfo['operations'][] = [
                            'server' => $operation['server'],
                            'node'   => $message->getNode(),
                            'value'  => $message->getValue(),
                            'sample' => $message->getSampleRate(),
                            'unit'   => $message->getUnit()
                        ];
                    }
                }
                $this->data['clients'][] = $clientInfo;
            }
        }
    }
Kernel event

@param EventInterface $event The received event