Skip to content

feat: propagate traceId across workers for cross-worker tracing#1247

Merged
HollywoodTonight merged 2 commits intomainfrom
traceId-payload-propagation
Jan 8, 2026
Merged

feat: propagate traceId across workers for cross-worker tracing#1247
HollywoodTonight merged 2 commits intomainfrom
traceId-payload-propagation

Conversation

@HollywoodTonight
Copy link
Copy Markdown
Contributor

  • Modify log-wrapper to prioritize context.traceId over X-Ray segment This ensures trace IDs from SQS messages are used for continuity
  • Add traceId to SCRAPE_CLIENT formatPayload for cross-worker propagation

This enables end-to-end tracing across multiple workers (e.g., audit-worker -> content-scraper -> audit-worker) by propagating the trace ID through SQS message payloads.

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

- Modify log-wrapper to prioritize context.traceId over X-Ray segment
  This ensures trace IDs from SQS messages are used for continuity
- Add traceId to SCRAPE_CLIENT formatPayload for cross-worker propagation
- Add comprehensive tests for traceId propagation scenarios
- Maintain 100% test coverage

This enables end-to-end tracing across multiple workers (e.g., audit-worker -> content-scraper -> audit-worker) by propagating the trace ID through SQS message payloads.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

This PR will trigger a minor release when merged.

@HollywoodTonight HollywoodTonight merged commit f7d194d into main Jan 8, 2026
7 checks passed
@HollywoodTonight HollywoodTonight deleted the traceId-payload-propagation branch January 8, 2026 10:01
solaris007 pushed a commit that referenced this pull request Jan 8, 2026
# [@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)

### Features

* propagate traceId across workers for cross-worker tracing ([#1247](#1247)) ([f7d194d](f7d194d))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version @adobe/spacecat-shared-data-access-v2.93.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

solaris007 pushed a commit that referenced this pull request Jan 8, 2026
# [@adobe/spacecat-shared-utils-v1.87.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.86.0...@adobe/spacecat-shared-utils-v1.87.0) (2026-01-08)

### Features

* propagate traceId across workers for cross-worker tracing ([#1247](#1247)) ([f7d194d](f7d194d))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version @adobe/spacecat-shared-utils-v1.87.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants