Skip to content
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

Add ResolveObserver to jsg/observer.h #1977

Merged
merged 2 commits into from
Apr 8, 2024
Merged

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Apr 5, 2024

This separates out the new ResolveObserver interface from the new module registry PR in order to make it easier to review and further reduce the size of that other PR. This only adds the definition and does not introduce any code that uses it. That'll come with the module registry PR.

The idea is to improve observability of the module resolution process, including tracking the failure cases. For workerd, these observers are non-ops by default but can be set up by embedders to have actual backing implementations.

Refs: #1553

This separates out the new ResolveObserver interface from the new
module registry PR in order to make it easier to review and further
reduce the size of that other PR. This only adds the definition and
does not introduce any code that uses it. That'll come with the
module registry PR.

The idea is to improve observability of the module resolution process,
including tracking the failure cases. For workerd, these observers
are non-ops by default but can be set up by embedders to have actual
backing implementations.
src/workerd/jsg/observer.h Outdated Show resolved Hide resolved
src/workerd/jsg/observer.h Outdated Show resolved Hide resolved
@jasnell jasnell merged commit 5516fcc into main Apr 8, 2024
10 checks passed
@jasnell jasnell deleted the jsnell/jsg-resolveobserver branch April 8, 2024 14:22
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.

None yet

2 participants