@adobe/spacecat-shared-rum-api-client 2.44.0 → 2.44.1

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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## [@adobe/spacecat-shared-rum-api-client-v2.44.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.44.0...@adobe/spacecat-shared-rum-api-client-v2.44.1) (2026-07-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ * add domain and summary to RUM bundle failure logs (rum-api-client) ([#1841](https://github.com/adobe/spacecat-shared/issues/1841)) ([d70bfa5](https://github.com/adobe/spacecat-shared/commit/d70bfa584d035f5234b5abb276c842af10848a46))
6
+
1
7
  ## [@adobe/spacecat-shared-rum-api-client-v2.44.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.43.1...@adobe/spacecat-shared-rum-api-client-v2.44.0) (2026-06-26)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-rum-api-client",
3
- "version": "2.44.0",
3
+ "version": "2.44.1",
4
4
  "description": "Shared modules of the Spacecat Services - Rum API client",
5
5
  "type": "module",
6
6
  "engines": {
package/src/client.js CHANGED
@@ -140,6 +140,7 @@ export default class RUMAPIClient {
140
140
  ...opts,
141
141
  domainkey,
142
142
  checkpoints,
143
+ queryType: query,
143
144
  }, this.log);
144
145
 
145
146
  this.log.debug(`Query "${query}" fetched ${bundles.length} bundles`); // maybe even remove?
@@ -175,6 +176,7 @@ export default class RUMAPIClient {
175
176
  ...opts,
176
177
  domainkey,
177
178
  checkpoints: [...allCheckpoints],
179
+ queryType: queries.join(','),
178
180
  }, this.log);
179
181
 
180
182
  const results = {};
@@ -262,6 +262,7 @@ async function fetchBundles(opts, log) {
262
262
  filterBotTraffic = true,
263
263
  startTime,
264
264
  endTime,
265
+ queryType,
265
266
  } = opts;
266
267
 
267
268
  if (!hasText(domain) || !hasText(domainkey)) {
@@ -290,7 +291,7 @@ async function fetchBundles(opts, log) {
290
291
  return response.json();
291
292
  } else {
292
293
  const failedUrl = response.url || chunk[index];
293
- log.warn(`Skipping response at index ${index}: status ${response.status} - url: ${sanitizeURL(failedUrl)}`);
294
+ log.warn(`Skipping response at index ${index}: status ${response.status} for domain: ${domain} - url: ${sanitizeURL(failedUrl)}`);
294
295
  failedUrls.push(failedUrl);
295
296
  return null;
296
297
  }
@@ -316,6 +317,7 @@ async function fetchBundles(opts, log) {
316
317
 
317
318
  // Add failedUrls to opts object for access by callers
318
319
  if (failedUrls.length > 0) {
320
+ log.warn(`[RUM] ${failedUrls.length}/${urls.length} bundle requests failed for domain: ${domain}${queryType ? ` (query: ${queryType})` : ''}`);
319
321
  // eslint-disable-next-line no-param-reassign
320
322
  opts.failedUrls = failedUrls;
321
323
  }