@adobe/spacecat-shared-data-access 2.92.0 → 2.93.0

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,17 @@
1
+ # [@adobe/spacecat-shared-data-access-v2.93.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.92.1...@adobe/spacecat-shared-data-access-v2.93.0) (2026-01-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * propagate traceId across workers for cross-worker tracing ([#1247](https://github.com/adobe/spacecat-shared/issues/1247)) ([f7d194d](https://github.com/adobe/spacecat-shared/commit/f7d194d2a8d23426c9dd66aae33f1118d226e827))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.92.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.92.0...@adobe/spacecat-shared-data-access-v2.92.1) (2026-01-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fetch api key from s3 and fix invalidation sequence ([#1251](https://github.com/adobe/spacecat-shared/issues/1251)) ([fe66bd6](https://github.com/adobe/spacecat-shared/commit/fe66bd6732dc200ab4df27babc1e0831f6187271))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.92.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.91.0...@adobe/spacecat-shared-data-access-v2.92.0) (2025-12-11)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.92.0",
3
+ "version": "2.93.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -194,17 +194,27 @@ class Audit extends BaseModel {
194
194
  * @param context - The context object.
195
195
  * @returns {object} - The formatted payload for the scrape client.
196
196
  */
197
- formatPayload: (stepResult, auditContext, context) => ({
198
- urls: stepResult.urls.map((urlObj) => urlObj.url),
199
- processingType: stepResult.processingType || 'default',
200
- options: stepResult.options || {},
201
- maxScrapeAge: isNumber(stepResult.maxScrapeAge) ? stepResult.maxScrapeAge : 24,
202
- auditData: {
203
- siteId: stepResult.siteId,
204
- completionQueueUrl: stepResult.completionQueueUrl || context.env?.AUDIT_JOBS_QUEUE_URL,
205
- auditContext,
206
- },
207
- }),
197
+ formatPayload: (stepResult, auditContext, context) => {
198
+ const payload = {
199
+ urls: stepResult.urls.map((urlObj) => urlObj.url),
200
+ processingType: stepResult.processingType || 'default',
201
+ options: stepResult.options || {},
202
+ maxScrapeAge: isNumber(stepResult.maxScrapeAge) ? stepResult.maxScrapeAge : 24,
203
+ auditData: {
204
+ siteId: stepResult.siteId,
205
+ completionQueueUrl: stepResult.completionQueueUrl || context.env?.AUDIT_JOBS_QUEUE_URL,
206
+ auditContext,
207
+ },
208
+ };
209
+
210
+ // Propagate traceId for cross-worker tracing continuity
211
+ // This allows the scrape client to maintain the same trace across multiple workers
212
+ if (context.traceId) {
213
+ payload.traceId = context.traceId;
214
+ }
215
+
216
+ return payload;
217
+ },
208
218
  },
209
219
  };
210
220
 
@@ -338,9 +338,12 @@ export const configSchema = Joi.object({
338
338
  outputLocation: Joi.string().required(),
339
339
  }).optional(),
340
340
  tokowakaConfig: Joi.object({
341
- apiKey: Joi.string().required(),
341
+ apiKey: Joi.string().optional(),
342
342
  forwardedHost: Joi.string().optional(),
343
343
  }).optional(),
344
+ edgeOptimizeConfig: Joi.object({
345
+ enabled: Joi.boolean().required(),
346
+ }).optional(),
344
347
  contentAiConfig: Joi.object({
345
348
  index: Joi.string().optional(),
346
349
  }).optional(),
@@ -448,7 +451,7 @@ export const Config = (data = {}) => {
448
451
  self.getLlmoCdnlogsFilter = () => state?.llmo?.cdnlogsFilter;
449
452
  self.getLlmoCdnBucketConfig = () => state?.llmo?.cdnBucketConfig;
450
453
  self.getTokowakaConfig = () => state?.tokowakaConfig;
451
-
454
+ self.getEdgeOptimizeConfig = () => state?.edgeOptimizeConfig;
452
455
  self.updateSlackConfig = (channel, workspace, invitedUserCount) => {
453
456
  state.slack = {
454
457
  channel,
@@ -741,6 +744,10 @@ export const Config = (data = {}) => {
741
744
  state.tokowakaConfig = tokowakaConfig;
742
745
  };
743
746
 
747
+ self.updateEdgeOptimizeConfig = (edgeOptimizeConfig) => {
748
+ state.edgeOptimizeConfig = edgeOptimizeConfig;
749
+ };
750
+
744
751
  return Object.freeze(self);
745
752
  };
746
753
 
@@ -757,4 +764,5 @@ Config.toDynamoItem = (config) => ({
757
764
  cdnLogsConfig: config.getCdnLogsConfig(),
758
765
  llmo: config.getLlmoConfig(),
759
766
  tokowakaConfig: config.getTokowakaConfig(),
767
+ edgeOptimizeConfig: config.getEdgeOptimizeConfig(),
760
768
  });