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

Add extra trace attributes from downward API #13544

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions jaeger/injector/mutator/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ const tpl = `[
"value": "{{.CollectorSvcAccount}}.serviceaccount.identity.{{.LinkerdNamespace}}.{{.ClusterDomain}}"
}
},
{
"op": "add",
"path": "/spec/{{.ProxyPath}}/env/-",
"value": {
"name": "LINKERD2_PROXY_TRACE_EXTRA_ATTRIBUTES",
"value": "k8s.pod.uid=$(_pod_uid),k8s.container.name=$(_pod_containerName)"
Copy link
Member

Choose a reason for hiding this comment

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

Where are the _pod_uid and _pod_containerName env variables set?

}
},
{
"op": "add",
"path": "/spec/{{.ProxyPath}}/volumeMounts/-",
Expand Down
Loading