-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hi,
The HostInterface TracingLoggin correctly binds to the components importing wasi:logging. However, since the http-server component does not import wasi:logging but calls a component that does import wasi:logging it does find the plugin in the context.
Additionally, the same kind of flow, but then to a component does work fine (see schema below).
The logs indicate that the betty-blocks/action and betty-blocks/logging both bind to the plugin. However, since the betty-blocks/action is dynamic, the http-server component cannot know that it needs to import wasi:logging. Therefore, that component does not get bound to the plugin. I believe that wasmCloud's core-functionality is this kind of dynamic linking and this works for component-component, so therefore this seems a bug to me.
Logs of components binding to the TracingPlugin:
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:26:06.191228Z WARN TracingLogging binding component
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:26:06.191256Z WARN TracingLogging binding component DONE. ID dde082a5-3f3c-4d9f-b8c6-03e9184f589c WORKLOAD ID: bb747046-e578-422c-9f66-3b3aba6c1e86
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:26:06.191269Z DEBUG binding plugin to workload component plugin_id="wasi-logging" component_id="bf78200b-9022-4d24-bf1a-b07bd25b9d69" interfaces={WitInterface { namespace: "wasi", package: "logging", interfaces: {"logging"}, version: None, config: {} }}
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:26:06.191275Z WARN TracingLogging binding component
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:26:06.191283Z WARN TracingLogging binding component DONE. ID bf78200b-9022-4d24-bf1a-b07bd25b9d69 WORKLOAD ID: bb747046-e578-422c-9f66-3b3aba6c1e86
Logs of the call to the http-server:
DEBUG HTTP request received method=POST uri=/ host=bb747046-e578-422c-9f66-3b3aba6c1e86
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:27:24.725872Z DEBUG looking up workload handle for host header host=bb747046-e578-422c-9f66-3b3aba6c1e86
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:27:24.734571Z WARN TracingLogging plugin not found in context component id: f03c4f1f-7a1f-436e-9ebc-0f272a058635
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:27:24.734873Z ERROR error receiving http response err=RecvError(())
hostgroup-default-787f4885c5-5q7w9 host 2025-12-15T16:27:24.734888Z ERROR failed to invoke component err=oneshot channel closed but no response was sent host=bb747046-e578-422c-9f66-3b3aba6c1e86
Do you have any thoughts on this? If you need more information, please let me know.
Mees
Metadata
Metadata
Assignees
Labels
Type
Projects
Status