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

[cappl-86] feat(workflows/wasm): emit msgs to beholder #845

Merged
merged 27 commits into from
Oct 22, 2024

Conversation

MStreet3
Copy link
Contributor

@MStreet3 MStreet3 commented Oct 11, 2024

This PR provides a new method Emitter() MessageEmitter in the wasm SDK, which returns an emitter that sends custom messages to an external collector. The Emitter() method is exposed on the guest Runtime for custom compute.

To implement MessageEmitter, the wasip1 build now links and exposes a new function called emit. The wasip1 host implementation of emit depends on a separate MessageEmitter which is passed via the module config. The passed MessageEmitter is typically an instance of an events.Labeler.

All custom compute requests that emit are required to include the workflow_id, workflow_name and workflow_owner_address or else module requests for compute will fail.

Out of Scope

This PR does not address the need for the host's emit behavior to be context aware. Follow up work will handle context within the WASM.

@MStreet3 MStreet3 force-pushed the cappl-86/emit-msgs-beholder branch from f2c258b to 29271ca Compare October 11, 2024 18:55
@MStreet3 MStreet3 force-pushed the cappl-86/emit-msgs-beholder branch from 4d20e25 to f304f4d Compare October 14, 2024 16:24
@MStreet3 MStreet3 force-pushed the cappl-86/emit-msgs-beholder branch from f304f4d to 0f6ea6b Compare October 14, 2024 17:58
@MStreet3 MStreet3 force-pushed the cappl-86/emit-msgs-beholder branch from 0f6ea6b to 9cc6e69 Compare October 16, 2024 20:57
patrickhuie19
patrickhuie19 previously approved these changes Oct 22, 2024
@cedric-cordenier cedric-cordenier merged commit 9225bc1 into main Oct 22, 2024
10 of 11 checks passed
@cedric-cordenier cedric-cordenier deleted the cappl-86/emit-msgs-beholder branch October 22, 2024 16:02
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.

4 participants