public static function watch($function, $category = null)
    {
        if (self::$extension === self::EXTENSION_TIDEWAYS) {
            self::$defaultOptions['watches'][$function] = $category;

            if ((self::$mode & self::MODE_TRACING) > 0) {
                tideways_span_watch($function, $category);
            }
        }
    }