Async Stack Tagging
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- In developer trial (Behind a flag) (Chrome In developer trial (Behind a flag))
- Intent stage
- None
Summary
Web developers want to be able to see breadcrumbs in the call stack in order to figure out the causal connection between events leading to an issue. However, stack traces might be sparse or incomplete because of the implementation details of third-party schedulers. To address this, with the current version of the Async Stack Tagging API, framework developers are able to provide information about the framework’s scheduling, which will be used by DevTools to enrich the UI during debugging, such as the call stack in the Sources panel, or the output for `console.trace` in the Console panel.
Motivation
Web developers want to be able to see breadcrumbs in the call stack in order to figure out the causal connection between events leading to an issue. However, stack traces might be sparse or incomplete because of the implementation details of third-party schedulers. To address this, with the current version of the Async Stack Tagging API, framework developers are able to provide information about the framework’s scheduling, which will be used by DevTools to enrich the UI during debugging, such as the call stack in the Sources panel, or the output for `console.trace` in the Console panel.
Standards & signals
- Specification: https://docs.google.com/document/d/1Yv8qi-1gRuFB8EaQGb79n5GGPtm_ZRrpaigKNsf5g_0/edit
- Firefox: Under consideration
- Safari: No signal
- Web developers: Positive — Adoption in Angular and Nuxt.
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=async-stack-tagging
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Async%20Stack%20Tagging
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Async%20Stack%20Tagging
- Baseline status: https://webstatus.dev/?q=Async%20Stack%20Tagging
Docs: https://docs.google.com/document/d/1Yv8qi-1gRuFB8EaQGb79n5GGPtm_ZRrpaigKNsf5g_0/edit
Explainers: https://docs.google.com/document/d/1Yv8qi-1gRuFB8EaQGb79n5GGPtm_ZRrpaigKNsf5g_0/edit