@arms/rum-reactnative 0.0.2-bate.1 → 0.0.2-bate.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
# rum-sdk-reactnative
|
|
2
2
|
|
|
3
|
-
RUM SDK For ReactNative
|
|
3
|
+
Aliyun RUM SDK For ReactNative
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
npm install rum-
|
|
9
|
+
npm install @arms/rum-reactnative
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
```
|
|
17
|
-
import
|
|
16
|
+
```ts
|
|
17
|
+
import armsRum from '@arms/rum-reactnative';
|
|
18
|
+
|
|
19
|
+
armsRum.init({
|
|
20
|
+
pid: '${pid}',
|
|
21
|
+
endpoint: '${endpoint}',
|
|
22
|
+
// 设置环境信息,参考值:'prod' | 'gray' | 'pre' | 'daily' | 'local'
|
|
23
|
+
env: 'prod',
|
|
24
|
+
collectors: {
|
|
25
|
+
api: true,
|
|
26
|
+
// JS错误监听开关,默认开启
|
|
27
|
+
jsError: true,
|
|
28
|
+
// 控制台错误监听开关,默认开启
|
|
29
|
+
consoleError: true
|
|
30
|
+
},
|
|
31
|
+
// 链路追踪配置开关,默认关闭
|
|
32
|
+
tracing: false,
|
|
33
|
+
});
|
|
18
34
|
|
|
19
|
-
// ...
|
|
20
|
-
|
|
21
|
-
const result = multiply(3, 7);
|
|
22
35
|
```
|
|
23
36
|
|
|
37
|
+
## Help
|
|
38
|
+
https://help.aliyun.com/zh/arms/user-experience-monitoring/
|
|
24
39
|
|
|
25
|
-
## Contributing
|
|
26
|
-
|
|
27
|
-
- [Development workflow](CONTRIBUTING.md#development-workflow)
|
|
28
|
-
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
|
|
29
|
-
- [Code of conduct](CODE_OF_CONDUCT.md)
|
|
30
|
-
|
|
31
|
-
## License
|
|
32
|
-
|
|
33
|
-
MIT
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
|