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

Tracing in Wasm Components. #207

Open
fawadasaurus opened this issue Apr 20, 2023 · 1 comment
Open

Tracing in Wasm Components. #207

fawadasaurus opened this issue Apr 20, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@fawadasaurus
Copy link
Contributor

fawadasaurus commented Apr 20, 2023

Is your feature request related to a problem? Please describe.
It would be really nice to have a streaming channel dedicated to tracing for wasmrs components. This would allow realtime feedback and telemetry from long running wasm components.

Propose a solution
When developing a component in rust, there should be a function that allows for tracing to be passed back to the Wick runtime. I am not sure how time should be calculated here, that may be something for Wick to handle.

...
The attributes are important to be configurable by the developer.
let tracing = wick_component:start_span(span_name: String, attributes: Struct);
...
tracing.send_span_event!(Log: Struct);
...
tracing.end_span; //likely needs to be explicit so that wick can calculate the start and end time?
... 

Describe alternatives you've considered
None

Additional context
None

@fawadasaurus fawadasaurus added enhancement New feature or request triage To be triaged labels Apr 20, 2023
@jsoverson jsoverson removed the triage To be triaged label Apr 26, 2023
@jsoverson
Copy link
Contributor

The foundation for this was added in #289 with the added __event FnF host operation. We need to build a tracing subscriber that propagates spans and events through that call to the host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants