@alicloud/console-fetcher-interceptor-arms
TypeScript icon, indicating that this package has built-in type declarations

1.4.9 • Public • Published

@alicloud/console-fetcher-interceptor-arms

@alicloud/fetcher 对响应的拦截,ARMS 日志主动上报。

请求的详情可在 https://stonehenge.aliyun-inc.com 对应的应用上查到。

注意:ARMS 埋点初始化脚本需要将 disableHook 配置为 true

<script>
!(function() {
  window.__bl = {
    config: {
      pid,
      uid, // 用户 
      tag, // channel
      environment,
      imgUrl: 'https://arms-retcode.aliyuncs.com/r.png?',
      disableHook, // 如果希望通过 __bl.api 进行主动上报接口调用日志的,这里设为 true
      enableSPA,
      useFmp
    }
  };
  
  var sc = document.createElement('script');
  
  sc.setAttribute('crossorigin', '');
  sc.src = '//retcode.alicdn.com/retcode/bl.js';
  document.head.appendChild(sc);
})();
</script>

文档

Package Sidebar

Install

npm i @alicloud/console-fetcher-interceptor-arms

Weekly Downloads

1

Version

1.4.9

License

MIT

Unpacked Size

12.2 kB

Total Files

28

Last publish

Collaborators

  • jacksontian
  • fengmk2
  • pagecao
  • aliyunsdkteam
  • console-fe