Skip to content

add skywalking-client-js in action#170

Closed
tristan-tsl wants to merge 17 commits intoapache:masterfrom
tristan-tsl:master
Closed

add skywalking-client-js in action#170
tristan-tsl wants to merge 17 commits intoapache:masterfrom
tristan-tsl:master

Conversation

@tristan-tsl
Copy link
Contributor

add skywalking-client-js in action




首先我们得明白前端项目是通过Nginx代理出来, 我们得修改Nginx添加SkyWalking-OAP端点, Nginx案例如下(Ingress-Nginx暂略)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No background, can't follow the context.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beacause the webfront project in nginx

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at good example. http://skywalking.apache.org/zh/observe-service-mesh-with-skywalking-and-envoy-access-log-service/

Blog should give a full context about what is going on. Blog is not a replacement of the documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经更改了, 再看下呗


![image-20201204200334641](image-20201204200334641.png)

谢谢观看, 我会继续完善这篇文章 No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shows up again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shows up again.

已经更改了, 再看下呗


![image-20201204200334641](image-20201204200334641.png)

谢谢观看, 后续我会在SkyWalking告警这块写更多实战文章
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

描述错误,此文章不是告警文章。请仔细校对文章。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

描述错误,此文章不是告警文章。请仔细校对文章。

已经修改

Copy link
Contributor Author

@tristan-tsl tristan-tsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经修改


https://github.com/apache/skywalking-client-js

谢谢观看, 后续我会在SkyWalking-client-js这块写更多实战文章
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议删除此句。




首先我们前端项目是通过Nginx代理出来。我们需要修改Nginx添加SkyWalking-OAP端点, 让SkyWalking-OAP可以被浏览器访问到。我们的Nginx配置如下(Ingress-Nginx暂略)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请补充项目部署架构图,明确这句话的背景。

Comment on lines +12 to +18
```
location /browser {
proxy_pass http://<your_skywalking_oap_ip>:12800;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文章示例代码格式不规整。

```
import ClientMonitor from 'skywalking-client-js'

const router = createRouter() // 在router创建之后
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createRouter 是vue相关语法,文章并没有做相应的交代。

Copy link
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文章缺少连贯性,需要增强相关内容。官方blog不是练习笔记,我们要求完善的内容、章节、实例图等。

@tristan-tsl
Copy link
Contributor Author

tristan-tsl commented Dec 18, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants