@arms/rum-core 0.0.31 → 0.0.32

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.
@@ -89,6 +89,19 @@ export interface IConfiguration {
89
89
  * 应用版本
90
90
  */
91
91
  version?: string;
92
+ /**
93
+ * 应用配置
94
+ */
95
+ app?: {
96
+ id?: string;
97
+ name?: string;
98
+ version?: string;
99
+ channel?: string;
100
+ env?: string;
101
+ type?: string;
102
+ package?: string;
103
+ framework?: string;
104
+ };
92
105
  /**
93
106
  * 用户配置
94
107
  */
@@ -96,7 +109,6 @@ export interface IConfiguration {
96
109
  id?: string;
97
110
  tags?: string;
98
111
  name?: string;
99
- [key: string]: any;
100
112
  };
101
113
  /**
102
114
  * 上报地址
@@ -117,10 +129,7 @@ export interface IConfiguration {
117
129
  * 配置下发
118
130
  * - 运行时动态配置更新,根据端侧特点来做定制化配置
119
131
  */
120
- remoteConfig?: Boolean | {
121
- enable?: boolean;
122
- url?: string;
123
- };
132
+ remoteConfig?: Boolean;
124
133
  /**
125
134
  * session config
126
135
  */
@@ -129,7 +138,7 @@ export interface IConfiguration {
129
138
  * 各个 collector config
130
139
  */
131
140
  collectors?: {
132
- [key: string]: unknown;
141
+ [key: string]: boolean;
133
142
  };
134
143
  /**
135
144
  * 事件过滤器配置
@@ -139,5 +148,11 @@ export interface IConfiguration {
139
148
  resource?: MatchOption | MatchOption[];
140
149
  exception?: MatchOption | MatchOption[];
141
150
  };
151
+ /**
152
+ * 全局自定义属性
153
+ */
154
+ properties?: {
155
+ [key: string]: number | string;
156
+ };
142
157
  [key: string]: any;
143
158
  }
@@ -2,7 +2,7 @@ export declare enum RumEventType {
2
2
  VIEW = "view",
3
3
  RESOURCE = "resource",
4
4
  EXCEPTION = "exception",
5
- LONG_TASK = "longtask",
5
+ LONG_TASK = "longTask",
6
6
  ACTION = "action",
7
7
  CUSTOM = "custom",
8
8
  APPLICATION = "application"
@@ -6,7 +6,7 @@ var RumEventType = exports.RumEventType = /*#__PURE__*/function (RumEventType) {
6
6
  RumEventType["VIEW"] = "view";
7
7
  RumEventType["RESOURCE"] = "resource";
8
8
  RumEventType["EXCEPTION"] = "exception";
9
- RumEventType["LONG_TASK"] = "longtask";
9
+ RumEventType["LONG_TASK"] = "longTask";
10
10
  RumEventType["ACTION"] = "action";
11
11
  RumEventType["CUSTOM"] = "custom";
12
12
  RumEventType["APPLICATION"] = "application";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arms/rum-core",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "arms rum javascript sdk core",
5
5
  "author": "guangli.fj <guangli.fj@alibaba-inc.com>",
6
6
  "license": "ISC",