Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the functions of bombayjs

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "what are the functions of bombayjs". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Bombayjs's ultra-comprehensive front-end monitoring sdk. The front-end SDK runs in the front-end page, collects and reports the monitoring data to the support system, and serves as the data source for query on the monitoring panel. As for the front-end SDK, it can be divided into three categories: data module, data processing module and reporting module.

The function of bombayjs

Report to pvuv

Capture error

Report performance performance

Report user track

Support for single page

Hackajaxfetch

Report loaded resources

Hackconsole

Hackonpopstate

Expose the global variable _ _ bb

Bury some sumavgmsg

The usage of bombayjs

Token applied backstage at bombayjs-admin.

Method one

NewBombay ({

Token:'xxx'

ReportUrl:' http://127.0.0.1:7002/api/v1/report/web'

})

Method two

Npmibombayjs-S

NewBombay ({

Token:'xxxx'

ReportUrl:' http://127.0.0.1:7002/api/v1/report/web'

})

Configuration

{

/ / report address

ReportUrl:' http://localhost:10000',

/ / submit parameters

Token:''

/ / app version

AppVersion:'1.0.0'

/ / Environment

Environment:'production'

/ / script delay reporting time

Outtime:300

/ / Open a single page?

EnableSPA:true

/ / whether to automatically report to pv

AutoSendPv:true

/ / whether to report page performance data

IsPage:true

/ / whether to report ajax performance data

IsAjax:true

/ / whether to report page resource data

IsResource:true

/ / whether to report error messages or not

IsError:true

/ / whether to record a screenshot

IsRecord:true

/ / whether to report the behavior or not

This is the end of the content of "what are the functions of bombayjs". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report