Skip to content

Replace log with tracing on Bridge-related modules #9279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

raymondkfcheung
Copy link
Contributor

@raymondkfcheung raymondkfcheung commented Jul 21, 2025

This PR replaces log with tracing instrumentation in Bridge-related modules by providing structured logging.

Partially addresses #9211
Similar to #8732

Key Features

  • Consistent targets: All components use predictable bridge::* log targets
  • Structured fields: Uses ?variable/%variable syntax for automatic Debug/Display formatting
  • Zero runtime impact: No behavioural changes, only observability improvements

@raymondkfcheung raymondkfcheung self-assigned this Jul 21, 2025
@raymondkfcheung raymondkfcheung marked this pull request as draft July 21, 2025 14:15
@raymondkfcheung raymondkfcheung added the T15-bridges This PR/Issue is related to bridges. label Jul 21, 2025
@paritytech-review-bot paritytech-review-bot bot requested a review from a team July 21, 2025 14:16
@raymondkfcheung raymondkfcheung changed the title Ray bridge tracing Replace log with tracing on Bridge-related modules Jul 21, 2025
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/16445775327
Failed job name: test-doc

authority,
sig,
?sig,
"Signed commitment contains incorrect signature of validator {idx} ({authority:?})"
Copy link
Contributor

Choose a reason for hiding this comment

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

I propose to make also {idx} and ({authority:?} a structured params

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

@raymondkfcheung raymondkfcheung marked this pull request as draft July 24, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T15-bridges This PR/Issue is related to bridges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants