public static function watchCallback($function, $callback)
    {
        if (self::$extension === self::EXTENSION_TIDEWAYS) {
            self::$defaultOptions['callbacks'][$function] = $callback;

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