@adobe/spacecat-shared-data-access 2.92.1 → 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,10 @@
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
+
1
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)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.92.1",
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