@webiny/telemetry 0.0.0-unstable.fcdad0bc61 → 0.0.0-unstable.fdd9228b5d

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/cli.js CHANGED
@@ -1,29 +1,44 @@
1
- const createSendEvent = require("./sendEvent");
2
1
  const { globalConfig } = require("@webiny/global-config");
2
+ const { isCI } = require("ci-info");
3
+ const { WTS } = require("wts-client/node");
4
+ const baseSendEvent = require("./sendEvent");
3
5
 
4
- const sendEvent = ({ event, user, version, properties, extraPayload }) => {
6
+ const sendEvent = async ({ event, user, version, properties }) => {
5
7
  const shouldSend = isEnabled();
8
+ if (!shouldSend) {
9
+ return;
10
+ }
11
+
12
+ const wts = new WTS();
13
+
14
+ const wcpProperties = {};
15
+ const [wcpOrgId, wcpProjectId] = getWcpOrgProjectId();
16
+ if (wcpOrgId && wcpProjectId) {
17
+ wcpProperties.wcpOrgId = wcpOrgId;
18
+ wcpProperties.wcpProjectId = wcpProjectId;
19
+ }
6
20
 
7
- try {
8
- const sendTelemetry = createSendEvent({
9
- event,
10
- user: user || globalConfig.get("id"),
21
+ return baseSendEvent({
22
+ event,
23
+ user: user || globalConfig.get("id"),
24
+ properties: {
25
+ ...properties,
26
+ ...wcpProperties,
11
27
  version: version || require("./package.json").version,
12
- properties,
13
- extraPayload
14
- });
15
-
16
- if (shouldSend) {
17
- return sendTelemetry();
18
- }
19
- } catch (err) {
20
- // Ignore errors if telemetry is disabled.
21
- if (!shouldSend) {
22
- return;
23
- }
24
-
25
- throw err;
28
+ ci: isCI,
29
+ newUser: Boolean(globalConfig.get("newUser"))
30
+ },
31
+ wts
32
+ });
33
+ };
34
+
35
+ const getWcpOrgProjectId = () => {
36
+ // In CLI, WCP project ID is stored in the `WCP_PROJECT_ID` environment variable.
37
+ const id = process.env.WCP_PROJECT_ID;
38
+ if (typeof id === "string") {
39
+ return id.split("/");
26
40
  }
41
+ return [];
27
42
  };
28
43
 
29
44
  const enable = () => {
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@webiny/telemetry",
3
- "version": "0.0.0-unstable.fcdad0bc61",
3
+ "version": "0.0.0-unstable.fdd9228b5d",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "@webiny/global-config": "0.0.0-unstable.fcdad0bc61",
7
- "form-data": "3.0.0",
8
- "node-fetch": "2.6.1"
6
+ "@webiny/global-config": "0.0.0-unstable.fdd9228b5d",
7
+ "ci-info": "4.2.0",
8
+ "jsesc": "3.0.2",
9
+ "strip-ansi": "6.0.1",
10
+ "wts-client": "1.0.1"
9
11
  },
10
12
  "publishConfig": {
11
13
  "access": "public",
12
14
  "directory": "."
13
15
  },
14
- "gitHead": "40d639c3665e384a5e2d26674d43ce26f3295e8c"
16
+ "gitHead": "fdd9228b5d2636463e8a34b6e0d26eea1e29c01d"
15
17
  }
package/react.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function sendEvent(ev: string, properties?: Record<string, any>): Promise<any>;
package/react.js CHANGED
@@ -1,36 +1,42 @@
1
- const createSendEvent = require("./sendEvent");
1
+ const baseSendEvent = require("./sendEvent");
2
+ const { WTS } = require("wts-client/admin");
2
3
 
3
- const setProperties = data => {
4
- return sendEvent("$identify", data);
5
- };
6
- /**
7
- *
8
- * @param event {String}
9
- * @param data {Record<string, string>}
10
- * @return {Promise<T>}
11
- */
12
- const sendEvent = (event, data = {}) => {
13
- let properties = {};
14
- let extraPayload = {};
15
- if (event !== "$identify") {
16
- properties = data;
17
- } else {
18
- extraPayload = {
19
- $set: data
20
- };
4
+ const sendEvent = async (event, properties = {}) => {
5
+ const shouldSend = process.env.REACT_APP_WEBINY_TELEMETRY !== "false";
6
+ if (!shouldSend) {
7
+ return;
21
8
  }
22
9
 
23
- const shouldSend = process.env.REACT_APP_WEBINY_TELEMETRY !== "false";
10
+ const wts = new WTS();
24
11
 
25
- const sendTelemetry = createSendEvent({
12
+ const wcpProperties = {};
13
+ const [wcpOrgId, wcpProjectId] = getWcpOrgProjectId();
14
+ if (wcpOrgId && wcpProjectId) {
15
+ wcpProperties.wcpOrgId = wcpOrgId;
16
+ wcpProperties.wcpProjectId = wcpProjectId;
17
+ }
18
+
19
+ return baseSendEvent({
26
20
  event,
27
- properties,
28
- extraPayload,
29
- user: process.env.REACT_APP_USER_ID,
30
- version: process.env.REACT_APP_WEBINY_VERSION
21
+ user: process.env.REACT_APP_WEBINY_TELEMETRY_USER_ID,
22
+ properties: {
23
+ ...properties,
24
+ ...wcpProperties,
25
+ version: process.env.REACT_APP_WEBINY_VERSION,
26
+ ci: process.env.REACT_APP_IS_CI === "true",
27
+ newUser: process.env.REACT_APP_WEBINY_TELEMETRY_NEW_USER === "true"
28
+ },
29
+ wts
31
30
  });
31
+ };
32
32
 
33
- return shouldSend ? sendTelemetry() : Promise.resolve();
33
+ const getWcpOrgProjectId = () => {
34
+ // In React applications, WCP project ID is stored in the `REACT_APP_WCP_PROJECT_ID` environment variable.
35
+ const id = process.env.REACT_APP_WCP_PROJECT_ID;
36
+ if (typeof id === "string") {
37
+ return id.split("/");
38
+ }
39
+ return [];
34
40
  };
35
41
 
36
- module.exports = { setProperties, sendEvent };
42
+ module.exports = { sendEvent };
package/sendEvent.js CHANGED
@@ -1,56 +1,60 @@
1
- const FormData = require("form-data");
2
- const fetch = require("node-fetch");
3
-
4
- const API_KEY = "ZdDZgkeOt4Z_m-UWmqFsE1d6-kcCK3BH0ypYTUIFty4";
5
- const API_URL = "https://t.webiny.com";
6
-
1
+ const stripAnsi = require("strip-ansi");
2
+ const jsesc = require("jsesc");
7
3
  /**
8
4
  * The main `sendEvent` function.
9
5
  * NOTE: don't use this in your app directly. Instead, use the one from `cli.js` or `react.js` files accordingly.
10
6
  */
11
- module.exports = ({ event, user, version, properties, extraPayload } = {}) => {
7
+ module.exports = ({ event, user, properties, wts } = {}) => {
8
+ // 1. Check for existence of required base parameters.
12
9
  if (!event) {
13
10
  throw new Error(`Cannot send event - missing "event" name.`);
14
11
  }
15
12
 
16
13
  if (!user) {
17
- throw new Error(`Cannot send event - missing "user" property.`);
14
+ throw new Error(`Cannot send event - missing "user" ID.`);
15
+ }
16
+
17
+ if (!properties) {
18
+ throw new Error(`Cannot send event - missing "properties" object.`);
19
+ }
20
+
21
+ if (!wts) {
22
+ throw new Error(`Cannot send event - missing "wts" instance.`);
18
23
  }
19
24
 
20
- if (!version) {
25
+ // 2. Extract properties and check for existence of required properties.
26
+ if (!properties.version) {
21
27
  throw new Error(`Cannot send event - missing "version" property.`);
22
28
  }
23
29
 
24
- if (!properties) {
25
- properties = {};
30
+ const hasCiProp = "ci" in properties;
31
+ if (!hasCiProp) {
32
+ throw new Error(`Cannot send event - missing "ci" boolean property.`);
26
33
  }
27
34
 
28
- if (!extraPayload) {
29
- extraPayload = {};
35
+ const hasNewUserProp = "newUser" in properties;
36
+ if (!hasNewUserProp) {
37
+ throw new Error(`Cannot send event - missing "newUser" boolean property.`);
30
38
  }
31
39
 
32
- const payload = {
33
- ...extraPayload,
34
- event,
35
- properties: {
36
- ...properties,
37
- version
38
- },
39
- distinct_id: user,
40
- api_key: API_KEY,
41
- timestamp: new Date().toISOString()
40
+ // 2. Sanitize properties.
41
+ const sanitizedProperties = {
42
+ ...properties,
43
+ newUser: properties.newUser === true ? "yes" : "no",
44
+ ci: properties.ci === true ? "yes" : "no"
42
45
  };
43
46
 
44
- const body = new FormData();
45
- body.append("data", Buffer.from(JSON.stringify(payload)).toString("base64"));
46
-
47
- // Return a function which will send the prepared body when invoked.
48
- return () => {
49
- return fetch(API_URL + "/capture/", {
50
- body,
51
- method: "POST"
52
- }).catch(() => {
53
- // Ignore errors
54
- });
55
- };
47
+ for (const key in sanitizedProperties) {
48
+ let sanitizedValue = sanitizedProperties[key];
49
+ if (typeof sanitizedValue === "string") {
50
+ sanitizedValue = sanitizedValue.trim();
51
+ sanitizedValue = stripAnsi(sanitizedValue);
52
+ sanitizedValue = jsesc(sanitizedValue);
53
+ }
54
+
55
+ sanitizedProperties[key] = sanitizedValue;
56
+ }
57
+
58
+ // 3. Send.
59
+ return wts.trackEvent(user, event, sanitizedProperties);
56
60
  };
package/CHANGELOG.md DELETED
@@ -1,1064 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [5.33.2](https://github.com/webiny/webiny-js/compare/v5.33.2-beta.2...v5.33.2) (2022-11-17)
7
-
8
- **Note:** Version bump only for package @webiny/telemetry
9
-
10
-
11
-
12
-
13
-
14
- ## [5.33.2-beta.2](https://github.com/webiny/webiny-js/compare/v5.33.2-beta.1...v5.33.2-beta.2) (2022-11-16)
15
-
16
- **Note:** Version bump only for package @webiny/telemetry
17
-
18
-
19
-
20
-
21
-
22
- ## [5.33.2-beta.1](https://github.com/webiny/webiny-js/compare/v5.33.2-beta.0...v5.33.2-beta.1) (2022-11-16)
23
-
24
- **Note:** Version bump only for package @webiny/telemetry
25
-
26
-
27
-
28
-
29
-
30
- ## [5.33.2-beta.0](https://github.com/webiny/webiny-js/compare/v5.33.1...v5.33.2-beta.0) (2022-11-15)
31
-
32
- **Note:** Version bump only for package @webiny/telemetry
33
-
34
-
35
-
36
-
37
-
38
- ## [5.33.1](https://github.com/webiny/webiny-js/compare/v5.33.1-beta.0...v5.33.1) (2022-11-07)
39
-
40
- **Note:** Version bump only for package @webiny/telemetry
41
-
42
-
43
-
44
-
45
-
46
- ## [5.33.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.33.0...v5.33.1-beta.0) (2022-11-04)
47
-
48
- **Note:** Version bump only for package @webiny/telemetry
49
-
50
-
51
-
52
-
53
-
54
- # [5.33.0](https://github.com/webiny/webiny-js/compare/v5.33.0-beta.1...v5.33.0) (2022-10-12)
55
-
56
- **Note:** Version bump only for package @webiny/telemetry
57
-
58
-
59
-
60
-
61
-
62
- # [5.33.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.33.0-beta.0...v5.33.0-beta.1) (2022-10-12)
63
-
64
- **Note:** Version bump only for package @webiny/telemetry
65
-
66
-
67
-
68
-
69
-
70
- # [5.33.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.32.0...v5.33.0-beta.0) (2022-10-11)
71
-
72
- **Note:** Version bump only for package @webiny/telemetry
73
-
74
-
75
-
76
-
77
-
78
- # [5.32.0](https://github.com/webiny/webiny-js/compare/v5.32.0-beta.0...v5.32.0) (2022-09-07)
79
-
80
- **Note:** Version bump only for package @webiny/telemetry
81
-
82
-
83
-
84
-
85
-
86
- # [5.32.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.31.0...v5.32.0-beta.0) (2022-09-06)
87
-
88
- **Note:** Version bump only for package @webiny/telemetry
89
-
90
-
91
-
92
-
93
-
94
- # [5.31.0](https://github.com/webiny/webiny-js/compare/v5.31.0-beta.1...v5.31.0) (2022-08-18)
95
-
96
- **Note:** Version bump only for package @webiny/telemetry
97
-
98
-
99
-
100
-
101
-
102
- # [5.31.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.31.0-beta.0...v5.31.0-beta.1) (2022-08-17)
103
-
104
- **Note:** Version bump only for package @webiny/telemetry
105
-
106
-
107
-
108
-
109
-
110
- # [5.31.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.30.0...v5.31.0-beta.0) (2022-08-16)
111
-
112
- **Note:** Version bump only for package @webiny/telemetry
113
-
114
-
115
-
116
-
117
-
118
- # [5.30.0](https://github.com/webiny/webiny-js/compare/v5.30.0-beta.1...v5.30.0) (2022-07-27)
119
-
120
- **Note:** Version bump only for package @webiny/telemetry
121
-
122
-
123
-
124
-
125
-
126
- # [5.30.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.30.0-beta.0...v5.30.0-beta.1) (2022-07-26)
127
-
128
- **Note:** Version bump only for package @webiny/telemetry
129
-
130
-
131
-
132
-
133
-
134
- # [5.30.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.29.0...v5.30.0-beta.0) (2022-07-25)
135
-
136
- **Note:** Version bump only for package @webiny/telemetry
137
-
138
-
139
-
140
-
141
-
142
- # [5.29.0](https://github.com/webiny/webiny-js/compare/v5.29.0-beta.2...v5.29.0) (2022-06-28)
143
-
144
- **Note:** Version bump only for package @webiny/telemetry
145
-
146
-
147
-
148
-
149
-
150
- # [5.29.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.29.0-beta.1...v5.29.0-beta.2) (2022-06-27)
151
-
152
- **Note:** Version bump only for package @webiny/telemetry
153
-
154
-
155
-
156
-
157
-
158
- # [5.29.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.29.0-beta.0...v5.29.0-beta.1) (2022-06-25)
159
-
160
- **Note:** Version bump only for package @webiny/telemetry
161
-
162
-
163
-
164
-
165
-
166
- # [5.29.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.28.0...v5.29.0-beta.0) (2022-06-25)
167
-
168
- **Note:** Version bump only for package @webiny/telemetry
169
-
170
-
171
-
172
-
173
-
174
- # [5.28.0](https://github.com/webiny/webiny-js/compare/v5.28.0-beta.0...v5.28.0) (2022-06-07)
175
-
176
- **Note:** Version bump only for package @webiny/telemetry
177
-
178
-
179
-
180
-
181
-
182
- # [5.28.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.27.0...v5.28.0-beta.0) (2022-06-07)
183
-
184
- **Note:** Version bump only for package @webiny/telemetry
185
-
186
-
187
-
188
-
189
-
190
- # [5.27.0](https://github.com/webiny/webiny-js/compare/v5.27.0-beta.0...v5.27.0) (2022-05-26)
191
-
192
- **Note:** Version bump only for package @webiny/telemetry
193
-
194
-
195
-
196
-
197
-
198
- # [5.27.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.26.1-beta.0...v5.27.0-beta.0) (2022-05-25)
199
-
200
- **Note:** Version bump only for package @webiny/telemetry
201
-
202
-
203
-
204
-
205
-
206
- ## [5.26.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.26.0...v5.26.1-beta.0) (2022-05-24)
207
-
208
- **Note:** Version bump only for package @webiny/telemetry
209
-
210
-
211
-
212
-
213
-
214
- # [5.26.0](https://github.com/webiny/webiny-js/compare/v5.26.0-beta.2...v5.26.0) (2022-05-13)
215
-
216
- **Note:** Version bump only for package @webiny/telemetry
217
-
218
-
219
-
220
-
221
-
222
- # [5.26.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.26.0-beta.1...v5.26.0-beta.2) (2022-05-13)
223
-
224
- **Note:** Version bump only for package @webiny/telemetry
225
-
226
-
227
-
228
-
229
-
230
- # [5.26.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.26.0-beta.0...v5.26.0-beta.1) (2022-05-12)
231
-
232
- **Note:** Version bump only for package @webiny/telemetry
233
-
234
-
235
-
236
-
237
-
238
- # [5.26.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.25.1-beta.1...v5.26.0-beta.0) (2022-05-11)
239
-
240
- **Note:** Version bump only for package @webiny/telemetry
241
-
242
-
243
-
244
-
245
-
246
- ## [5.25.1-beta.1](https://github.com/webiny/webiny-js/compare/v5.25.1-beta.0...v5.25.1-beta.1) (2022-05-11)
247
-
248
- **Note:** Version bump only for package @webiny/telemetry
249
-
250
-
251
-
252
-
253
-
254
- ## [5.25.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.25.0...v5.25.1-beta.0) (2022-05-10)
255
-
256
- **Note:** Version bump only for package @webiny/telemetry
257
-
258
-
259
-
260
-
261
-
262
- # [5.25.0](https://github.com/webiny/webiny-js/compare/v5.25.0-beta.6...v5.25.0) (2022-04-04)
263
-
264
- **Note:** Version bump only for package @webiny/telemetry
265
-
266
-
267
-
268
-
269
-
270
- # [5.25.0-beta.6](https://github.com/webiny/webiny-js/compare/v5.25.0-beta.5...v5.25.0-beta.6) (2022-04-01)
271
-
272
- **Note:** Version bump only for package @webiny/telemetry
273
-
274
-
275
-
276
-
277
-
278
- # [5.25.0-beta.5](https://github.com/webiny/webiny-js/compare/v5.25.0-beta.4...v5.25.0-beta.5) (2022-04-01)
279
-
280
- **Note:** Version bump only for package @webiny/telemetry
281
-
282
-
283
-
284
-
285
-
286
- # [5.25.0-beta.4](https://github.com/webiny/webiny-js/compare/v5.25.0-beta.3...v5.25.0-beta.4) (2022-03-31)
287
-
288
- **Note:** Version bump only for package @webiny/telemetry
289
-
290
-
291
-
292
-
293
-
294
- # [5.25.0-beta.3](https://github.com/webiny/webiny-js/compare/v5.25.0-beta.2...v5.25.0-beta.3) (2022-03-28)
295
-
296
- **Note:** Version bump only for package @webiny/telemetry
297
-
298
-
299
-
300
-
301
-
302
- # [5.25.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.25.0-beta.1...v5.25.0-beta.2) (2022-03-21)
303
-
304
- **Note:** Version bump only for package @webiny/telemetry
305
-
306
-
307
-
308
-
309
-
310
- # [5.25.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.25.0-beta.0...v5.25.0-beta.1) (2022-03-15)
311
-
312
- **Note:** Version bump only for package @webiny/telemetry
313
-
314
-
315
-
316
-
317
-
318
- # [5.25.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.24.0...v5.25.0-beta.0) (2022-03-14)
319
-
320
- **Note:** Version bump only for package @webiny/telemetry
321
-
322
-
323
-
324
-
325
-
326
- # [5.24.0](https://github.com/webiny/webiny-js/compare/v5.24.0-beta.0...v5.24.0) (2022-03-03)
327
-
328
- **Note:** Version bump only for package @webiny/telemetry
329
-
330
-
331
-
332
-
333
-
334
- # [5.24.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.23.1...v5.24.0-beta.0) (2022-03-02)
335
-
336
-
337
- ### Features
338
-
339
- * add types to app-page-builder ([e65ce21](https://github.com/webiny/webiny-js/commit/e65ce216d9019657964ddd89194be63544ef2bad))
340
-
341
-
342
-
343
-
344
-
345
- ## [5.23.1](https://github.com/webiny/webiny-js/compare/v5.23.1-beta.0...v5.23.1) (2022-02-16)
346
-
347
- **Note:** Version bump only for package @webiny/telemetry
348
-
349
-
350
-
351
-
352
-
353
- ## [5.23.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.23.0...v5.23.1-beta.0) (2022-02-16)
354
-
355
- **Note:** Version bump only for package @webiny/telemetry
356
-
357
-
358
-
359
-
360
-
361
- # [5.23.0](https://github.com/webiny/webiny-js/compare/v5.23.0-beta.1...v5.23.0) (2022-02-15)
362
-
363
- **Note:** Version bump only for package @webiny/telemetry
364
-
365
-
366
-
367
-
368
-
369
- # [5.23.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.23.0-beta.0...v5.23.0-beta.1) (2022-02-14)
370
-
371
- **Note:** Version bump only for package @webiny/telemetry
372
-
373
-
374
-
375
-
376
-
377
- # [5.23.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.22.1...v5.23.0-beta.0) (2022-02-13)
378
-
379
- **Note:** Version bump only for package @webiny/telemetry
380
-
381
-
382
-
383
-
384
-
385
- ## [5.22.1](https://github.com/webiny/webiny-js/compare/v5.22.1-beta.0...v5.22.1) (2022-01-29)
386
-
387
- **Note:** Version bump only for package @webiny/telemetry
388
-
389
-
390
-
391
-
392
-
393
- ## [5.22.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.22.0...v5.22.1-beta.0) (2022-01-29)
394
-
395
-
396
- ### Bug Fixes
397
-
398
- * **telemetry:** add Buffer polyfill and improve telemetry code ([e078a2d](https://github.com/webiny/webiny-js/commit/e078a2d3659c979683a98c3c2f2aa769a5c7b56e))
399
-
400
-
401
-
402
-
403
-
404
- # [5.22.0](https://github.com/webiny/webiny-js/compare/v5.22.0-beta.3...v5.22.0) (2022-01-24)
405
-
406
- **Note:** Version bump only for package @webiny/telemetry
407
-
408
-
409
-
410
-
411
-
412
- # [5.22.0-beta.3](https://github.com/webiny/webiny-js/compare/v5.22.0-beta.2...v5.22.0-beta.3) (2022-01-21)
413
-
414
- **Note:** Version bump only for package @webiny/telemetry
415
-
416
-
417
-
418
-
419
-
420
- # [5.22.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.22.0-beta.1...v5.22.0-beta.2) (2022-01-21)
421
-
422
- **Note:** Version bump only for package @webiny/telemetry
423
-
424
-
425
-
426
-
427
-
428
- # [5.22.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.22.0-beta.0...v5.22.0-beta.1) (2022-01-19)
429
-
430
- **Note:** Version bump only for package @webiny/telemetry
431
-
432
-
433
-
434
-
435
-
436
- # [5.22.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.21.0...v5.22.0-beta.0) (2022-01-14)
437
-
438
- **Note:** Version bump only for package @webiny/telemetry
439
-
440
-
441
-
442
-
443
-
444
- # [5.21.0](https://github.com/webiny/webiny-js/compare/v5.21.0-beta.0...v5.21.0) (2022-01-04)
445
-
446
- **Note:** Version bump only for package @webiny/telemetry
447
-
448
-
449
-
450
-
451
-
452
- # [5.21.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.20.0...v5.21.0-beta.0) (2022-01-03)
453
-
454
- **Note:** Version bump only for package @webiny/telemetry
455
-
456
-
457
-
458
-
459
-
460
- # [5.20.0](https://github.com/webiny/webiny-js/compare/v5.20.0-beta.2...v5.20.0) (2021-12-23)
461
-
462
- **Note:** Version bump only for package @webiny/telemetry
463
-
464
-
465
-
466
-
467
-
468
- # [5.20.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.20.0-beta.1...v5.20.0-beta.2) (2021-12-21)
469
-
470
- **Note:** Version bump only for package @webiny/telemetry
471
-
472
-
473
-
474
-
475
-
476
- # [5.20.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.20.0-beta.0...v5.20.0-beta.1) (2021-12-20)
477
-
478
- **Note:** Version bump only for package @webiny/telemetry
479
-
480
-
481
-
482
-
483
-
484
- # [5.20.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.19.1...v5.20.0-beta.0) (2021-12-17)
485
-
486
- **Note:** Version bump only for package @webiny/telemetry
487
-
488
-
489
-
490
-
491
-
492
- ## [5.19.1](https://github.com/webiny/webiny-js/compare/v5.19.1-beta.0...v5.19.1) (2021-12-14)
493
-
494
- **Note:** Version bump only for package @webiny/telemetry
495
-
496
-
497
-
498
-
499
-
500
- ## [5.19.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.19.0...v5.19.1-beta.0) (2021-12-14)
501
-
502
- **Note:** Version bump only for package @webiny/telemetry
503
-
504
-
505
-
506
-
507
-
508
- # [5.19.0](https://github.com/webiny/webiny-js/compare/v5.19.0-beta.6...v5.19.0) (2021-12-13)
509
-
510
- **Note:** Version bump only for package @webiny/telemetry
511
-
512
-
513
-
514
-
515
-
516
- # [5.19.0-beta.6](https://github.com/webiny/webiny-js/compare/v5.19.0-beta.5...v5.19.0-beta.6) (2021-12-13)
517
-
518
- **Note:** Version bump only for package @webiny/telemetry
519
-
520
-
521
-
522
-
523
-
524
- # [5.19.0-beta.5](https://github.com/webiny/webiny-js/compare/v5.19.0-beta.4...v5.19.0-beta.5) (2021-12-10)
525
-
526
- **Note:** Version bump only for package @webiny/telemetry
527
-
528
-
529
-
530
-
531
-
532
- # [5.19.0-beta.4](https://github.com/webiny/webiny-js/compare/v5.19.0-beta.3...v5.19.0-beta.4) (2021-12-09)
533
-
534
- **Note:** Version bump only for package @webiny/telemetry
535
-
536
-
537
-
538
-
539
-
540
- # [5.19.0-beta.3](https://github.com/webiny/webiny-js/compare/v5.19.0-beta.2...v5.19.0-beta.3) (2021-12-08)
541
-
542
- **Note:** Version bump only for package @webiny/telemetry
543
-
544
-
545
-
546
-
547
-
548
- # [5.19.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.19.0-beta.1...v5.19.0-beta.2) (2021-12-06)
549
-
550
- **Note:** Version bump only for package @webiny/telemetry
551
-
552
-
553
-
554
-
555
-
556
- # [5.19.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.19.0-beta.0...v5.19.0-beta.1) (2021-12-06)
557
-
558
- **Note:** Version bump only for package @webiny/telemetry
559
-
560
-
561
-
562
-
563
-
564
- # [5.19.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.18.3...v5.19.0-beta.0) (2021-12-06)
565
-
566
- **Note:** Version bump only for package @webiny/telemetry
567
-
568
-
569
-
570
-
571
-
572
- ## [5.18.3](https://github.com/webiny/webiny-js/compare/v5.18.3-beta.0...v5.18.3) (2021-12-02)
573
-
574
- **Note:** Version bump only for package @webiny/telemetry
575
-
576
-
577
-
578
-
579
-
580
- ## [5.18.3-beta.0](https://github.com/webiny/webiny-js/compare/v5.18.2...v5.18.3-beta.0) (2021-12-01)
581
-
582
- **Note:** Version bump only for package @webiny/telemetry
583
-
584
-
585
-
586
-
587
-
588
- ## [5.18.2](https://github.com/webiny/webiny-js/compare/v5.18.2-beta.0...v5.18.2) (2021-11-29)
589
-
590
- **Note:** Version bump only for package @webiny/telemetry
591
-
592
-
593
-
594
-
595
-
596
- ## [5.18.2-beta.0](https://github.com/webiny/webiny-js/compare/v5.18.1...v5.18.2-beta.0) (2021-11-29)
597
-
598
- **Note:** Version bump only for package @webiny/telemetry
599
-
600
-
601
-
602
-
603
-
604
- ## [5.18.1](https://github.com/webiny/webiny-js/compare/v5.18.1-beta.0...v5.18.1) (2021-11-25)
605
-
606
- **Note:** Version bump only for package @webiny/telemetry
607
-
608
-
609
-
610
-
611
-
612
- ## [5.18.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.18.0...v5.18.1-beta.0) (2021-11-25)
613
-
614
- **Note:** Version bump only for package @webiny/telemetry
615
-
616
-
617
-
618
-
619
-
620
- # [5.18.0](https://github.com/webiny/webiny-js/compare/v5.18.0-beta.4...v5.18.0) (2021-11-24)
621
-
622
- **Note:** Version bump only for package @webiny/telemetry
623
-
624
-
625
-
626
-
627
-
628
- # [5.18.0-beta.4](https://github.com/webiny/webiny-js/compare/v5.18.0-beta.3...v5.18.0-beta.4) (2021-11-23)
629
-
630
- **Note:** Version bump only for package @webiny/telemetry
631
-
632
-
633
-
634
-
635
-
636
- # [5.18.0-beta.3](https://github.com/webiny/webiny-js/compare/v5.18.0-beta.2...v5.18.0-beta.3) (2021-11-22)
637
-
638
- **Note:** Version bump only for package @webiny/telemetry
639
-
640
-
641
-
642
-
643
-
644
- # [5.18.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.18.0-beta.1...v5.18.0-beta.2) (2021-11-21)
645
-
646
- **Note:** Version bump only for package @webiny/telemetry
647
-
648
-
649
-
650
-
651
-
652
- # [5.18.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.18.0-beta.0...v5.18.0-beta.1) (2021-11-19)
653
-
654
- **Note:** Version bump only for package @webiny/telemetry
655
-
656
-
657
-
658
-
659
-
660
- # [5.18.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.17.4...v5.18.0-beta.0) (2021-11-19)
661
-
662
- **Note:** Version bump only for package @webiny/telemetry
663
-
664
-
665
-
666
-
667
-
668
- ## [5.17.4](https://github.com/webiny/webiny-js/compare/v5.17.4-beta.1...v5.17.4) (2021-11-19)
669
-
670
- **Note:** Version bump only for package @webiny/telemetry
671
-
672
-
673
-
674
-
675
-
676
- ## [5.17.4-beta.1](https://github.com/webiny/webiny-js/compare/v5.17.4-beta.0...v5.17.4-beta.1) (2021-11-19)
677
-
678
- **Note:** Version bump only for package @webiny/telemetry
679
-
680
-
681
-
682
-
683
-
684
- ## [5.17.4-beta.0](https://github.com/webiny/webiny-js/compare/v5.17.3...v5.17.4-beta.0) (2021-11-19)
685
-
686
- **Note:** Version bump only for package @webiny/telemetry
687
-
688
-
689
-
690
-
691
-
692
- ## [5.17.3](https://github.com/webiny/webiny-js/compare/v5.17.3-beta.0...v5.17.3) (2021-11-15)
693
-
694
- **Note:** Version bump only for package @webiny/telemetry
695
-
696
-
697
-
698
-
699
-
700
- ## [5.17.3-beta.0](https://github.com/webiny/webiny-js/compare/v5.17.2...v5.17.3-beta.0) (2021-11-12)
701
-
702
- **Note:** Version bump only for package @webiny/telemetry
703
-
704
-
705
-
706
-
707
-
708
- ## [5.17.2](https://github.com/webiny/webiny-js/compare/v5.17.2-beta.0...v5.17.2) (2021-11-11)
709
-
710
- **Note:** Version bump only for package @webiny/telemetry
711
-
712
-
713
-
714
-
715
-
716
- ## [5.17.2-beta.0](https://github.com/webiny/webiny-js/compare/v5.17.1...v5.17.2-beta.0) (2021-11-11)
717
-
718
-
719
- ### Bug Fixes
720
-
721
- * force same version on all packages ([9cbae8b](https://github.com/webiny/webiny-js/commit/9cbae8b050900546eb17932c23a609593211c1c8))
722
-
723
-
724
-
725
-
726
-
727
- # [5.17.0](https://github.com/webiny/webiny-js/compare/v5.17.0-beta.2...v5.17.0) (2021-11-08)
728
-
729
- **Note:** Version bump only for package @webiny/telemetry
730
-
731
-
732
-
733
-
734
-
735
- # [5.17.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.17.0-beta.1...v5.17.0-beta.2) (2021-11-08)
736
-
737
- **Note:** Version bump only for package @webiny/telemetry
738
-
739
-
740
-
741
-
742
-
743
- # [5.17.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.16.0...v5.17.0-beta.1) (2021-11-08)
744
-
745
- **Note:** Version bump only for package @webiny/telemetry
746
-
747
-
748
-
749
-
750
-
751
- # [5.16.0](https://github.com/webiny/webiny-js/compare/v5.16.0-beta.4...v5.16.0) (2021-10-21)
752
-
753
- **Note:** Version bump only for package @webiny/telemetry
754
-
755
-
756
-
757
-
758
-
759
- # [5.16.0-beta.4](https://github.com/webiny/webiny-js/compare/v5.16.0-beta.3...v5.16.0-beta.4) (2021-10-20)
760
-
761
- **Note:** Version bump only for package @webiny/telemetry
762
-
763
-
764
-
765
-
766
-
767
- # [5.16.0-beta.3](https://github.com/webiny/webiny-js/compare/v5.16.0-beta.2...v5.16.0-beta.3) (2021-10-20)
768
-
769
- **Note:** Version bump only for package @webiny/telemetry
770
-
771
-
772
-
773
-
774
-
775
- # [5.16.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.16.0-beta.1...v5.16.0-beta.2) (2021-10-20)
776
-
777
- **Note:** Version bump only for package @webiny/telemetry
778
-
779
-
780
-
781
-
782
-
783
- # [5.16.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.16.0-beta.0...v5.16.0-beta.1) (2021-10-19)
784
-
785
- **Note:** Version bump only for package @webiny/telemetry
786
-
787
-
788
-
789
-
790
-
791
- # [5.16.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.17.0-beta.0...v5.16.0-beta.0) (2021-10-19)
792
-
793
- **Note:** Version bump only for package @webiny/telemetry
794
-
795
-
796
-
797
-
798
-
799
- # [5.17.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.15.0...v5.17.0-beta.0) (2021-10-18)
800
-
801
- **Note:** Version bump only for package @webiny/telemetry
802
-
803
-
804
-
805
-
806
-
807
- # [5.15.0](https://github.com/webiny/webiny-js/compare/v5.15.0-beta.3...v5.15.0) (2021-09-30)
808
-
809
- **Note:** Version bump only for package @webiny/telemetry
810
-
811
-
812
-
813
-
814
-
815
- # [5.15.0-beta.3](https://github.com/webiny/webiny-js/compare/v5.15.0-beta.2...v5.15.0-beta.3) (2021-09-30)
816
-
817
- **Note:** Version bump only for package @webiny/telemetry
818
-
819
-
820
-
821
-
822
-
823
- # [5.15.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.15.0-beta.1...v5.15.0-beta.2) (2021-09-29)
824
-
825
- **Note:** Version bump only for package @webiny/telemetry
826
-
827
-
828
-
829
-
830
-
831
- # [5.15.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.15.0-beta.0...v5.15.0-beta.1) (2021-09-28)
832
-
833
- **Note:** Version bump only for package @webiny/telemetry
834
-
835
-
836
-
837
-
838
-
839
- # [5.15.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.14.0...v5.15.0-beta.0) (2021-09-16)
840
-
841
-
842
- ### Bug Fixes
843
-
844
- * add comment ([61dafeb](https://github.com/webiny/webiny-js/commit/61dafeb08883b1c80033d3164581f56138fee675))
845
- * correct args passing in `setProperties` function ([2ac0fed](https://github.com/webiny/webiny-js/commit/2ac0fedb8bf760b15686de44523138816e708c36))
846
- * correct if statements ([1dcdd73](https://github.com/webiny/webiny-js/commit/1dcdd735d89f1918952481a6ae510a60cf113b7f))
847
- * create utils ([6a24dcf](https://github.com/webiny/webiny-js/commit/6a24dcfb02130a672c1e90794910f8a0549f659d))
848
- * remove old api folder ([5dce8e2](https://github.com/webiny/webiny-js/commit/5dce8e2c7871fd1e24326e73e3a9459208ce7f75))
849
- * rename to `extraPayload` ([b5bcda8](https://github.com/webiny/webiny-js/commit/b5bcda88029c003d0c5704a37bff4771b9056d5e))
850
- * update dependencies ([37f2691](https://github.com/webiny/webiny-js/commit/37f2691f3cb615615a089d977f58a22a8bb21f50))
851
- * use base `sendEvent` function ([6f93072](https://github.com/webiny/webiny-js/commit/6f9307212e05b98f2a4866002258238b216e0b3b))
852
- * use built-in isEnabled ([4051257](https://github.com/webiny/webiny-js/commit/4051257c58165dbcc9805283d183583ed0bf7d15))
853
- * use global-config package ([a678b18](https://github.com/webiny/webiny-js/commit/a678b18d9d760a69eb6badaaf6451acd3c7fb953))
854
-
855
-
856
- ### Features
857
-
858
- * add telemetry getter ([b1a5e8d](https://github.com/webiny/webiny-js/commit/b1a5e8df96b1591266fbd8df90d6689a526da0f3))
859
- * add utils ([d9be82a](https://github.com/webiny/webiny-js/commit/d9be82a76f5210704c71cd8e191aca698cb0963c))
860
- * create `sendEvent` function for CLI environment ([d0babff](https://github.com/webiny/webiny-js/commit/d0babffeb1cb3a7a796caa8a25f3f9a2ba9359d7))
861
- * create base `sendEvent` function ([a764e85](https://github.com/webiny/webiny-js/commit/a764e854c5da0ebcb99038e9b9aaf3184202edc3))
862
-
863
-
864
-
865
-
866
-
867
- # [5.14.0](https://github.com/webiny/webiny-js/compare/v5.14.0-beta.0...v5.14.0) (2021-08-30)
868
-
869
- **Note:** Version bump only for package @webiny/telemetry
870
-
871
-
872
-
873
-
874
-
875
- # [5.14.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.13.0...v5.14.0-beta.0) (2021-08-26)
876
-
877
- **Note:** Version bump only for package @webiny/telemetry
878
-
879
-
880
-
881
-
882
-
883
- # [5.13.0](https://github.com/webiny/webiny-js/compare/v5.13.0-beta.4...v5.13.0) (2021-08-18)
884
-
885
- **Note:** Version bump only for package @webiny/telemetry
886
-
887
-
888
-
889
-
890
-
891
- # [5.13.0-beta.4](https://github.com/webiny/webiny-js/compare/v5.13.0-beta.3...v5.13.0-beta.4) (2021-08-18)
892
-
893
- **Note:** Version bump only for package @webiny/telemetry
894
-
895
-
896
-
897
-
898
-
899
- # [5.13.0-beta.3](https://github.com/webiny/webiny-js/compare/v5.13.0-beta.2...v5.13.0-beta.3) (2021-08-17)
900
-
901
- **Note:** Version bump only for package @webiny/telemetry
902
-
903
-
904
-
905
-
906
-
907
- # [5.13.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.13.0-beta.1...v5.13.0-beta.2) (2021-08-17)
908
-
909
- **Note:** Version bump only for package @webiny/telemetry
910
-
911
-
912
-
913
-
914
-
915
- # [5.13.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.13.0-beta.0...v5.13.0-beta.1) (2021-08-16)
916
-
917
- **Note:** Version bump only for package @webiny/telemetry
918
-
919
-
920
-
921
-
922
-
923
- # [5.13.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.12.0...v5.13.0-beta.0) (2021-08-16)
924
-
925
- **Note:** Version bump only for package @webiny/telemetry
926
-
927
-
928
-
929
-
930
-
931
- # [5.12.0](https://github.com/webiny/webiny-js/compare/v5.12.0-beta.1...v5.12.0) (2021-08-05)
932
-
933
- **Note:** Version bump only for package @webiny/telemetry
934
-
935
-
936
-
937
-
938
-
939
- # [5.12.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.12.0-beta.0...v5.12.0-beta.1) (2021-08-05)
940
-
941
- **Note:** Version bump only for package @webiny/telemetry
942
-
943
-
944
-
945
-
946
-
947
- # [5.12.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.11.1...v5.12.0-beta.0) (2021-08-04)
948
-
949
- **Note:** Version bump only for package @webiny/telemetry
950
-
951
-
952
-
953
-
954
-
955
- ## [5.11.1](https://github.com/webiny/webiny-js/compare/v5.11.1-beta.0...v5.11.1) (2021-07-31)
956
-
957
- **Note:** Version bump only for package @webiny/telemetry
958
-
959
-
960
-
961
-
962
-
963
- ## [5.11.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.11.0...v5.11.1-beta.0) (2021-07-31)
964
-
965
- **Note:** Version bump only for package @webiny/telemetry
966
-
967
-
968
-
969
-
970
-
971
- # [5.11.0](https://github.com/webiny/webiny-js/compare/v5.11.0-beta.2...v5.11.0) (2021-07-22)
972
-
973
- **Note:** Version bump only for package @webiny/telemetry
974
-
975
-
976
-
977
-
978
-
979
- # [5.11.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.11.0-beta.1...v5.11.0-beta.2) (2021-07-21)
980
-
981
- **Note:** Version bump only for package @webiny/telemetry
982
-
983
-
984
-
985
-
986
-
987
- # [5.11.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.11.0-beta.0...v5.11.0-beta.1) (2021-07-21)
988
-
989
- **Note:** Version bump only for package @webiny/telemetry
990
-
991
-
992
-
993
-
994
-
995
- # [5.11.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.10.0...v5.11.0-beta.0) (2021-07-21)
996
-
997
- **Note:** Version bump only for package @webiny/telemetry
998
-
999
-
1000
-
1001
-
1002
-
1003
- # [5.10.0](https://github.com/webiny/webiny-js/compare/v5.10.0-beta.2...v5.10.0) (2021-07-06)
1004
-
1005
- **Note:** Version bump only for package @webiny/telemetry
1006
-
1007
-
1008
-
1009
-
1010
-
1011
- # [5.10.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.10.0-beta.1...v5.10.0-beta.2) (2021-07-06)
1012
-
1013
- **Note:** Version bump only for package @webiny/telemetry
1014
-
1015
-
1016
-
1017
-
1018
-
1019
- # [5.10.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.10.0-beta.0...v5.10.0-beta.1) (2021-07-06)
1020
-
1021
- **Note:** Version bump only for package @webiny/telemetry
1022
-
1023
-
1024
-
1025
-
1026
-
1027
- # [5.10.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.9.0...v5.10.0-beta.0) (2021-07-02)
1028
-
1029
- **Note:** Version bump only for package @webiny/telemetry
1030
-
1031
-
1032
-
1033
-
1034
-
1035
- # [5.9.0](https://github.com/webiny/webiny-js/compare/v5.9.0-beta.2...v5.9.0) (2021-06-21)
1036
-
1037
- **Note:** Version bump only for package @webiny/telemetry
1038
-
1039
-
1040
-
1041
-
1042
-
1043
- # [5.9.0-beta.2](https://github.com/webiny/webiny-js/compare/v5.9.0-beta.1...v5.9.0-beta.2) (2021-06-20)
1044
-
1045
- **Note:** Version bump only for package @webiny/telemetry
1046
-
1047
-
1048
-
1049
-
1050
-
1051
- # [5.9.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.9.0-beta.0...v5.9.0-beta.1) (2021-06-20)
1052
-
1053
- **Note:** Version bump only for package @webiny/telemetry
1054
-
1055
-
1056
-
1057
-
1058
-
1059
- # [5.9.0-beta.0](https://github.com/webiny/webiny-js/compare/v5.8.0...v5.9.0-beta.0) (2021-06-18)
1060
-
1061
-
1062
- ### Bug Fixes
1063
-
1064
- * **telemetry:** rename package and upgrade configs and env vars loading ([4791937](https://github.com/webiny/webiny-js/commit/4791937de3ec1431c82fca1dc2e91da9c7ac49d3))