def send_metric(self, name, metric):
config = SERIALIZER_CONFIG[class_name(metric)]<EOL>mmap(<EOL>self._buffered_send_metric,<EOL>self.serialize_metric(<EOL>metric,<EOL>name,<EOL>config['<STR_LIT>'],<EOL>config['<STR_LIT>']<EOL>)<EOL>)<EOL>if hasattr(metric, '<STR_LIT>') and config.get('<STR_LIT>'):<EOL><INDENT>mmap(<EOL>self._buffered_send_metric,<EOL>self.serialize_metric(<EOL>metric.snapshot,<EOL>name,<EOL>config['<STR_LIT>'],<EOL>config['<STR_LIT>']<EOL>)<EOL>)<EOL><DEDENT>
Send metric and its snapshot.