Code Monkey home page Code Monkey logo

Comments (10)

forthealllight avatar forthealllight commented on July 30, 2024 2

你们对前端错误和白屏有解决方案吗?

你好,对于前端错误监控,可以接入sentry,传送门https://github.com/getsentry/sentry-javascript。
至于白屏的话,需要具体原因具体分析~,可以上报白屏时间,根据onload方法等可以统计白屏的时间。

from blog.

veryoung avatar veryoung commented on July 30, 2024

有没有code show?想看看实例

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

你好,实例没有,公司项目不方便透露代码,我做的是是手埋的,也比较简单,就是统一接口。展示的话,参考友盟或者腾讯移动分析

from blog.

965283058 avatar 965283058 commented on July 30, 2024

你们对前端错误和白屏有解决方案吗?

from blog.

xudaosong avatar xudaosong commented on July 30, 2024

有使用什么性能监控的库,来获取这些信息

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

有使用什么性能监控的库,来获取这些信息

如果是性能数据的话,可以参考阿里云性能数据分析平台,不过是收费的。或者神策数据等平台的收费项目。开源的话,有解决方案,但是感觉不是特别的成熟。

from blog.

dmwin72015 avatar dmwin72015 commented on July 30, 2024

缺少干货

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

缺少干货

确实,现在回头看我自己写的文章,确实这篇没什么干货,算科普文吧

from blog.

wd2010 avatar wd2010 commented on July 30, 2024

楼主请问下

  • 我在上报时怎样实现在空闲时间上报,因为业务逻辑在跑的过程中按理来说我们要延迟上报时间~
  • 还有本地缓存的话是使用indexDB吗,好像有听说PouchDB可以取代(没有实践过)
  • 上报是通过image的src上报么?听说还有Beacon 这个api,但没使用过,不知道这两者哪个更适合

楼主有时间可否再分享下细节方面,因为前端监控这东西确实是看着很简单,但实践起来却不简单了

from blog.

forthealllight avatar forthealllight commented on July 30, 2024

楼主请问下

  • 我在上报时怎样实现在空闲时间上报,因为业务逻辑在跑的过程中按理来说我们要延迟上报时间~
  • 还有本地缓存的话是使用indexDB吗,好像有听说PouchDB可以取代(没有实践过)
  • 上报是通过image的src上报么?听说还有Beacon 这个api,但没使用过,不知道这两者哪个更适合

楼主有时间可否再分享下细节方面,因为前端监控这东西确实是看着很简单,但实践起来却不简单了

其实这是一个系列的文章,

关于第三点可以参考我的另一篇文章#38

关于第二点,我们是通过文件形式保存,然后通过定时任务来取文件中的数据存入到db

关于低一点,空闲上报,场景不多,一般要延迟一点时间上报吧,我的第三点那篇文章也涉及一点

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.