def register_metric(self, name, metric, time_bucket_in_sec):
collector = self.get_metrics_collector()<EOL>collector.register_metric(name, metric, time_bucket_in_sec)<EOL>
Registers a new metric to this context