You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/11/05 13:59:55 UTC

[skywalking-client-js] 01/01: Update README.md

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch wu-sheng-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking-client-js.git

commit e67bc10938bfd6aa84edde48fdebc24bc6ae810b
Author: 吴晟 Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Nov 5 21:59:45 2020 +0800

    Update README.md
---
 README.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 9c58dc2..ab8ed74 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,7 @@ User could use `register` method to load and report data automatically.
 import ClientMonitor from 'skywalking-client-js';
 ```
 ```
+// Report collected data to `http:// + window.location.host + /browser/perfData` in default
 ClientMonitor.register({
   service: 'test-ui',
   pagePath: '/current/page/name',
@@ -38,7 +39,7 @@ The register method supports the following parameters.
 
 |Parameter|Type|Description|Required|Default Value|
 |----|----|----|----|----|
-|collector|String|In default, the collected data would be reported to current domain. If you set this, the data could be reported to another domain, NOTE [the Cross-Origin Resource Sharing (CORS) issuse and solution](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). |false|-|
+|collector|String|In default, the collected data would be reported to current domain(`/browser/perfData`. Then, typically, we recommend you use a Gateway/proxy to redirect the data to the OAP(`resthost:restport`). If you set this, the data could be reported to another domain, NOTE [the Cross-Origin Resource Sharing (CORS) issuse and solution](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). |false|-|
 |service|String|project id|true|-|
 |serviceVersion|String|project verison|true|-|
 |pagePath|String|project path|true|-|