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

fix: display service name in Cloud Trace #2350

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

minherz
Copy link
Contributor

@minherz minherz commented Jan 23, 2024

Background

Fixes the display of the correct service name in Cloud Trace when the app is deployed with tracing enabled.

Fixes

#2349

Change Summary

Manifests of the services that ingest traces to Cloud Trace are updated with additional environment variable (OTEL_SERVICE_NAME) that results in posting the service.name attribute with the correct value.

Testing Procedure

Deploy the app (either using kustomize with google-cloud-operations component or using Helm with Google Cloud operations enabled and observe that all service names in the Trace details grid are known.

Copy link

🚲 PR staged at http://34.72.176.161

@minherz minherz marked this pull request as ready for review January 23, 2024 00:52
@minherz minherz requested review from yoshi-approver and a team as code owners January 23, 2024 00:52
Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

Thanks so much for this, @minherz!
I believe you covered all OTel-supporting microservices.
Approved. Merging. I have a quick question about moving some changes to the google-cloud-operations Kustomize component. See my other comment.

inject OTel service name env variable to enable display of service name in Cloud Trace
Copy link
Collaborator

@NimJay NimJay left a comment

Choose a reason for hiding this comment

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

Thank you for moving the changes from /kubernetes-manifests to the google-cloud-operations Kustomize component. Clean! And thanks for the super clear GitHub issue description.

Everything looks good. Approved. Merging.

I trust that you'd done adequate testing (and will be testing these changes when you resume work on your content).

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