Now all metrics in the group "my_app" will be printed to stdout as:
[1574213883.4182858][my_app]: my_metric=
   [1574213940.5237644][my_app]: my_metric=
Metric Handlers
Below are the metric handlers that come included with torchelastic.
class torch.distributed.elastic.metrics.api.MetricHandler
class torch.distributed.elastic.metrics.api.ConsoleMetricHandler
class torch.distributed.elastic.metrics.api.NullMetricHandler
Methods
torch.distributed.elastic.metrics.configure(handler, group=None)
torch.distributed.elastic.metrics.prof(fn=None, group='torchelastic')
@profile decorator publishes duration.ms, count, success, failure
   metrics for the function that it decorates. The metric name
   defaults to the qualified name ("class_name.def_name") of the
   function. If the function does not belong to a class, it uses the
   leaf module name instead.
Usage
  @metrics.prof
  def x():
      pass

  @metrics.prof(group="agent")
