
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@umengfe/apm
Advanced tools
npm install @umengfe/apm --save
ESM
import { init } from '@umengfe/apm';
init({
pageFilter: { mode: 'ignore', rules: [] },
pkgList: ['com.uemng.apmios', 'com.umeng.apmandroid'],
});
初始化方法,调用示意
import { init } from '@umengfe/apm';
init({
pageFilter: {
mode: 'ignore',
rules: ['https://www.umeng.com'],
},
pkgList: ['com.uemng.apmios', 'com.umeng.apmandroid'],
});
非必须参数,用于根据页面地址判断是否过滤日志,包含如下属性
| 属性 | 含义 | 默认 | 类型 |
|---|---|---|---|
| mode | 匹配模式,当值为 ignore,表示黑名单模式,命中规则的不上报 、当值为 match,表示白名单模式命中规则的上报 | ignore | 枚举值 ignore|match |
| rules | 匹配规则集合,当类型为 string 时,表示包含当页面 URL 包含该字符串时命中规则;当类型为 Funtion,该函数返回 true 表示命中规则,false 表示未命中规则;当类型为数组时,表示规则集合,规则之间为或的关系,只要任意一个规则命中,则规则集命中。 | [],该默认值表示黑名单为空,日志全部上报 | string | RegExp | Function | Array<string | RegExp | Function> |
当需要打通 native 端时为必填参数。 当且仅当在 native 端集成友盟 APM sdk,且版本大于<1.6.0>时生效,表示允许通过 native 发送日志的应用包名称,是一个字符串数组
| 属性 | 含义 | 默认 | 类型 |
|---|---|---|---|
| pkgList | 通过 native 发送日志的应用包名称白名单集合,如有多个包名称,用英文逗号分隔 | '' 表示包名称地址为空,默认不发送日志 | string 或者 数组 举例 'com.umeng.com,com.apm.com' 或者 ['com.umeng.com','com.apm.com'] |
非必填,表示 js 日志输出日志等级
| 属性 | 含义 | 默认 | 类型 |
|---|---|---|---|
| logLevel | 日志等级 | 0 | 枚举值 0 表示 ERROR 日志1 表示 WARN 日志2 表示 INFO 日志3 表示 DEBUG 日志 |
FAQs
友盟web|H5性能分析、错误追踪sdk
The npm package @umengfe/apm receives a total of 212 weekly downloads. As such, @umengfe/apm popularity was classified as not popular.
We found that @umengfe/apm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.