Skip to content

Align JS live trace attributes with CommonAttributes - #1915

Merged
lbroudoux merged 1 commit into
microcks:1.13.xfrom
dipak0000812:fix-js-live-trace-attributes
Jan 16, 2026
Merged

lbroudoux merged 1 commit into
microcks:1.13.xfrom
dipak0000812:fix-js-live-trace-attributes

Conversation

@dipak0000812

Copy link
Copy Markdown
Contributor

Description

This change aligns JavaScript script live trace span attributes with the shared CommonAttributes used by Groovy scripts.

Previously, JS scripts were emitting custom attributes such as dispatch.type and dispatch.script, which caused inconsistencies in live traces and made troubleshooting harder when switching between script engines.

This update ensures both Groovy and JavaScript scripts use the same attribute keys and values for dispatch-related span events.

Changes

  • Replaced JS-specific span attributes with CommonAttributes
  • Updated invokeProcessFn() in JsScriptEngineBinder
  • No functional behavior change, trace data only

Related issue(s)

Fixes #1911

@github-actions

Copy link
Copy Markdown

👋 @dipak0000812

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

🌟 ~~~~~~~~~ 🌟

📢 If you like Microcks, please ⭐ star ⭐ our repo to support it!

🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

@dipak0000812
dipak0000812 force-pushed the fix-js-live-trace-attributes branch from e1439c4 to 5a76e7c Compare January 15, 2026 07:08
lbroudoux

This comment was marked as outdated.

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build is broken as you have used unknown variables. Please compile before submitting a PR!

@dipak0000812
dipak0000812 force-pushed the fix-js-live-trace-attributes branch from 5a76e7c to 58f01b0 Compare January 15, 2026 15:53
@dipak0000812

Copy link
Copy Markdown
Contributor Author

Hi @lbroudoux,

I’ve fixed the compilation issue by aligning the JS tracing attributes with the constants used in RestInvocationProcessor, amended the commit with proper DCO sign-off, and force-pushed the update.

CI has been re-triggered — please let me know if anything else needs adjustment.

@dipak0000812
dipak0000812 force-pushed the fix-js-live-trace-attributes branch from 58f01b0 to ebd4da1 Compare January 15, 2026 17:00
@dipak0000812
dipak0000812 force-pushed the fix-js-live-trace-attributes branch from ebd4da1 to 1dfb7a5 Compare January 16, 2026 10:39
@dipak0000812

Copy link
Copy Markdown
Contributor Author

Hi @lbroudoux,

All requested code changes are complete:

Spotless formatting issues resolved

Trace attributes aligned with CommonAttributes and DispatchStyles.JS

All unit, integration, and build checks are passing

The remaining failing check is SonarCloud analysis, which fails with:
Project not found / missing SONAR_TOKEN.

This appears to be a SonarCloud permission or token issue for fork-based PRs.
Please let me know if you’d like me to take any further action.

Thanks.

@lbroudoux

Copy link
Copy Markdown
Member

Project not found / missing SONAR_TOKEN.

This one is normal as fork branches don't have access to our token. We're struggling putting the right condition in place to avoid this one but a least this a "known error". I think you're right and we're now good to go. Will have final review before the merge.

Thanks again for this contribution!

@lbroudoux lbroudoux added this to the Next milestone Jan 16, 2026

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@lbroudoux
lbroudoux merged commit 6112303 into microcks:1.13.x Jan 16, 2026
8 of 9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 @dipak0000812

You are now a Microcks community contributor! 💖

Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏

📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"

Kudos and please keep going, we need you 🙌

🌟 ~~~~~~~~~ 🌟

📢 If you like Microcks, please ⭐ star ⭐ our repo to support it!

🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

@dipak0000812
dipak0000812 deleted the fix-js-live-trace-attributes branch January 16, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants