Skip to content

add log source column in profile #492

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Aryan-sharma11
Copy link
Member

@Aryan-sharma11 Aryan-sharma11 commented May 14, 2025

Add log source column in karmor profile to differentiate between container logs and host logs.
image

Signed-off-by: Aryan-sharma11 <[email protected]>
Copy link
Member

@PrimalPimmy PrimalPimmy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small thing, rest LGTM

@@ -411,9 +416,16 @@ func generateRowsFromData(data []pb.Log, Operation string) []table.Row {
(entry.ContainerName == o1.Container) ||
(len(o1.Namespace) == 0 && len(o1.Pod) == 0 && len(o1.Container) == 0) {
var p Profile
var logType string
Copy link
Member

@PrimalPimmy PrimalPimmy May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add in this condition for namespace and container_name as well? Since they don't exist in Host logs, we can just put them as "--" instead of empty space

Signed-off-by: Aryan-sharma11 <[email protected]>
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.

3 participants