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

[processor/k8sattributesprocessor] add debug logs #11060

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

povilasv
Copy link
Contributor

Description:

Adding debug logs to k8sattributesprocessor - at the moment it is impossible to debug when the k8sattributeprocessor fails to add metadata. Adding debug logs for pod identification allows us to see the issue with pod association.

Link to tracking Issue:

Testing:

Tested locally:

Here are some examples of messages:

2022-06-10T07:08:12.818Z        debug   k8sattributesprocessor/processor.go:111 Evaluating Pod Identifier       {"kind": "processor", "name": "k8sattributes", "pipeline": "traces", "pod identifier key": "k8s.pod.ip", "pod identifier value": "10.244.0.179"}
2022-06-10T07:08:06.610Z        debug   k8sattributesprocessor/processor.go:111 Evaluating Pod Identifier       {"kind": "processor", "name": "k8sattributes", "pipeline": "metrics", "pod identifier key": "", "pod identifier value": ""}  
2022-06-10T07:08:12.818Z        debug   k8sattributesprocessor/processor.go:123 Getting the pod {"kind": "processor", "name": "k8sattributes", "pipeline": "traces", "pod identifier value": "k8s.pod.ip", "pod": {"Name":"jaeger-http-app-7f7c9657cd-h8rfb","Address":"10.244.0.179","PodUID":"293411d1-5132-46d0-aa6a-df138ca937aa","Attributes":{"":"jaeger-http-app","k8s.deployment.name":"jaeger-http-app","k8s.na
mespace.name":"sys-mon"},"StartTime":"2022-06-09T11:23:02Z","Ignore":false,"Namespace":"sys-mon","Containers":null,"DeletedAt":"0001-01-
01T00:00:00Z"}}       

Documentation:

@dmitryax dmitryax added the ready to merge Code review completed; ready to merge by maintainers label Jun 16, 2022
@codeboten codeboten merged commit 7cf91a0 into open-telemetry:main Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants