winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.94k stars 194 forks source link

Allow filtering the logs by the selected node automatically #6787

Open skyrpex opened 2 months ago

skyrpex commented 2 months ago

The proposal consists of:

Related to #6593.

skyrpex commented 2 months ago

Maybe, instead of adding a checkbox, we could add an additional option inside the filter by resource dropdown:

image

We could have All resources | Current (or selected) resource | Remaining options....

polamoros commented 2 months ago

I think it makes sense to add it to the existing resource dropdown 👍

skyrpex commented 2 months ago

I wonder if filtering given a specific resource is too limiting. For example, imagine this map:

root
  | container
  | | service
  | | | function

Selecting container or service would make the logs empty. I'm thinking that we could show the logs of child resources as well?