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

Conversation

sfleen
Copy link
Contributor

@sfleen sfleen commented Jan 9, 2025

This allows us to specify extra trace attribute key-value pairs from the downward API without needing to pull from the pods annotations or labels. This lets us keep the proxy decoupled from k8s concepts.

This allows us to specify extra trace attribute key-value pairs from the downward API without needing to pull from the pods annotations or labels. This lets us keep the proxy decoupled from k8s concepts.

Signed-off-by: Scott Fleener <[email protected]>
"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?

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.

2 participants