code: def applies(self, host, method, path):
          
          return (not host or wildcard_match(self.host, host)) \
              and (not method or wildcard_match(self.method, method)) \
              and (not path or wildcard_match(self.path, path))
docs: Determines whether or not this sampling rule applies to
          the incoming request based on some of the request's parameters.
          Any None parameters provided will be considered an implicit match.