Skip to content

feat: add tracing channels support for preload files#39

Merged
thetutlage merged 1 commit intoadonisjs:9.xfrom
densetsuuu-forks:feat/add-tracing-channels-support-for-preloads
Feb 2, 2026
Merged

feat: add tracing channels support for preload files#39
thetutlage merged 1 commit intoadonisjs:9.xfrom
densetsuuu-forks:feat/add-tracing-channels-support-for-preloads

Conversation

@densetsuuu
Copy link
Contributor

@densetsuuu densetsuuu commented Feb 1, 2026

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Adds tracing channel support for preload files, mirroring the existing pattern used for service providers. A new adonisjs.preload.import diagnostics channel is created and integrated into the PreloadsManager, allowing external tools and monitoring systems to trace preload module imports during the application start phase. Each preload import is wrapped with tracePromise, using the same hasSubscribers optimization to avoid unnecessary allocations when no subscribers are active.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@thetutlage thetutlage merged commit d0ebd77 into adonisjs:9.x Feb 2, 2026
4 checks passed
@thetutlage
Copy link
Member

Looks good. Thanks 👍🏽

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants