Metrics API: allow posting of metrics sending to app.trace_logger.log if available