metrology/reporter/statsd.py
def send_metric(self, name, metric):
        """Send metric and its snapshot."""
        config = SERIALIZER_CONFIG[class_name(metric)]

        mmap(
            self._buffered_send_metric,
            self.serialize_metric(
                metric,
                name,
                config['keys'],
                config['serialized_type']
            )
        )

        if hasattr(metric, 'snapshot') and config.get('snapshot_keys'):
            mmap(
                self._buffered_send_metric,
                self.serialize_metric(
                    metric.snapshot,
                    name,
                    config['snapshot_keys'],
                    config['serialized_type']
                )
            )
def send_metric(self, name, metric):
        config = SERIALIZER_CONFIG[class_name(metric)]

        mmap(
            self._buffered_send_metric,
            self.serialize_metric(
                metric,
                name,
                config['keys'],
                config['serialized_type']
            )
        )

        if hasattr(metric, 'snapshot') and config.get('snapshot_keys'):
            mmap(
                self._buffered_send_metric,
                self.serialize_metric(
                    metric.snapshot,
                    name,
                    config['snapshot_keys'],
                    config['serialized_type']
                )
            )
def send_metric ( self , name , metric ) : config = SERIALIZER_CONFIG [ class_name ( metric ) ] mmap ( self . _buffered_send_metric , self . serialize_metric ( metric , name , config [ 'keys' ] , config [ 'serialized_type' ] ) ) if hasattr ( metric , 'snapshot' ) and config . get ( 'snapshot_keys' ) : mmap ( self . _buffered_send_metric , self . serialize_metric ( metric . snapshot , name , config [ 'snapshot_keys' ] , config [ 'serialized_type' ] ) )
Send metric and its snapshot.
Send metric and its snapshot .