@adobe/spacecat-shared-rum-api-client 2.37.6 → 2.37.8
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/CHANGELOG.md +14 -0
- package/package.json +2 -2
- package/src/common/rum-bundler-client.js +4 -4
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.37.8](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.37.7...@adobe/spacecat-shared-rum-api-client-v2.37.8) (2025-10-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/rum-distiller to v1.19.1 ([#1004](https://github.com/adobe/spacecat-shared/issues/1004)) ([23446ad](https://github.com/adobe/spacecat-shared/commit/23446adeb9bfb2484885ac28b080b45bffe2d30c)), closes [#8203](https://github.com/adobe/spacecat-shared/issues/8203)
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.37.7](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.37.6...@adobe/spacecat-shared-rum-api-client-v2.37.7) (2025-09-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* remove unnecessary logs to reduce Coralogix usage ([#947](https://github.com/adobe/spacecat-shared/issues/947)) ([c93fa4f](https://github.com/adobe/spacecat-shared/commit/c93fa4f69238106caa0f8150df029e4535c99e39))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-rum-api-client-v2.37.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.37.5...@adobe/spacecat-shared-rum-api-client-v2.37.6) (2025-09-16)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-rum-api-client",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.8",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Rum API client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@adobe/fetch": "4.2.3",
|
|
39
39
|
"@adobe/helix-shared-wrap": "2.0.2",
|
|
40
40
|
"@adobe/helix-universal": "5.2.3",
|
|
41
|
-
"@adobe/rum-distiller": "1.19.
|
|
41
|
+
"@adobe/rum-distiller": "1.19.1",
|
|
42
42
|
"@adobe/spacecat-shared-utils": "1.48.0",
|
|
43
43
|
"aws4": "1.13.2",
|
|
44
44
|
"urijs": "1.19.11"
|
|
@@ -302,11 +302,11 @@ async function fetchBundles(opts, log) {
|
|
|
302
302
|
const currentCheckpoint = Math.floor(result.length / 50000);
|
|
303
303
|
|
|
304
304
|
if (currentCheckpoint > lastCheckpoint) {
|
|
305
|
-
log.
|
|
305
|
+
log.debug(`Checkpoint: Fetched ${result.length} bundles; resuming...`);
|
|
306
306
|
lastCheckpoint = currentCheckpoint;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
log.info(`Retrieved all RUM bundles. Total transfer size (in KB): ${(totalTransferSize / 1024).toFixed(2)}`);
|
|
309
|
+
log.info(`Retrieved all RUM bundles. Total transfer size (in KB): ${(totalTransferSize / 1024).toFixed(2)}`); // if rum dashboards are no longer in use, remove this
|
|
310
310
|
|
|
311
311
|
// Add failedUrls to opts object for access by callers
|
|
312
312
|
if (failedUrls.length > 0) {
|
|
@@ -363,7 +363,7 @@ function createBundleStream(opts, log) {
|
|
|
363
363
|
const currentCheckpoint = Math.floor(bundlesCount / 50000);
|
|
364
364
|
|
|
365
365
|
if (currentCheckpoint > lastCheckpoint) {
|
|
366
|
-
log.
|
|
366
|
+
log.debug(`Checkpoint: Fetched ${bundlesCount} bundles; resuming...`);
|
|
367
367
|
lastCheckpoint = currentCheckpoint;
|
|
368
368
|
}
|
|
369
369
|
|
|
@@ -385,7 +385,7 @@ function createBundleStream(opts, log) {
|
|
|
385
385
|
|
|
386
386
|
await Promise.all(workers);
|
|
387
387
|
|
|
388
|
-
log.info(`Retrieved all RUM bundles. Total transfer size (in KB): ${(totalTransferSize / 1024).toFixed(2)}`);
|
|
388
|
+
log.info(`Retrieved all RUM bundles. Total transfer size (in KB): ${(totalTransferSize / 1024).toFixed(2)}`); // if rum dashboards are no longer in use, remove this
|
|
389
389
|
|
|
390
390
|
// Add failedUrls to opts object for access by callers
|
|
391
391
|
if (failedUrls.length > 0) {
|
package/src/index.js
CHANGED
|
@@ -134,7 +134,7 @@ export default class RUMAPIClient {
|
|
|
134
134
|
checkpoints,
|
|
135
135
|
}, this.log);
|
|
136
136
|
|
|
137
|
-
this.log.
|
|
137
|
+
this.log.debug(`Query "${query}" fetched ${bundles.length} bundles`); // maybe even remove?
|
|
138
138
|
return handler(bundles, opts);
|
|
139
139
|
} catch (e) {
|
|
140
140
|
throw new Error(`Query '${query}' failed. Opts: ${JSON.stringify(sanitize(opts))}. Reason: ${e.message}`);
|
|
@@ -168,7 +168,7 @@ export default class RUMAPIClient {
|
|
|
168
168
|
}, this.log);
|
|
169
169
|
|
|
170
170
|
const results = {};
|
|
171
|
-
this.log.
|
|
171
|
+
this.log.debug(`Multi query ${JSON.stringify(queries.join(', '))} fetched ${bundles.length} bundles`); // maybe even remove?
|
|
172
172
|
|
|
173
173
|
// Execute each query handler sequentially
|
|
174
174
|
for (const { query, handler } of queryHandlers) {
|