-
Notifications
You must be signed in to change notification settings - Fork 499
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 resource attributes to collector sidecar #832
Conversation
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
@pavolloffay What do you think? |
Co-authored-by: Ben B. <bongartz@klimlive.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good. It's worth modifying e2e test to check if the variable is set.
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM great work. The PR looks good to me.
Could you please document this behavior in readme or perhaps in the api/crd (if it makes sense)?
…mode Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
Updated the README |
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
Done! |
* Add resource attributes to collector sidecar Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * Update getAttributesEnv comments. Co-authored-by: Ben B. <bongartz@klimlive.de> * Use semconv package for attribute names Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * Make env var names consistent Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * Improve comments Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * Rename attributes function Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * fix import order Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * Verify env vars on sidecar e2e test Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * Update readme mentioning OTEL_RESOURCE_ATTRIBUTES env var on sidecar mode Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> * README Improvments Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com> Co-authored-by: Ben B. <bongartz@klimlive.de>
This PR adds an env var
OTEL_RESOURCE_ATTRIBUTES
to the sidecar pod, this envvar contains the k8s attributes of the pod, this is to be used for example with the resource detector processor to attach k8s attributes to spans,logs and metrics.Updates #573
Signed-off-by: Ruben Vargas ruben.vp8510@gmail.com