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 grpc trace export sample #316

Merged
merged 9 commits into from
May 2, 2024

Conversation

psx95
Copy link
Contributor

@psx95 psx95 commented Apr 30, 2024

The added gRPC sample also showcases credential refresh process.

Testing

  • python3 example_grpc.py
  • Verified that expired credentials were refreshing through added logs.

@psx95 psx95 marked this pull request as ready for review May 1, 2024 17:58
@psx95 psx95 requested a review from a team as a code owner May 1, 2024 17:58
@psx95 psx95 changed the title Add grpc trace export Add grpc trace export sample May 1, 2024
@psx95 psx95 requested a review from aabmass May 1, 2024 17:58
Copy link
Collaborator

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

Can you run black and isort tools on these files?

samples/otlptrace/README.md Outdated Show resolved Hide resolved
samples/otlptrace/example-grpc.py Outdated Show resolved Hide resolved
samples/otlptrace/example-grpc.py Outdated Show resolved Hide resolved
samples/otlptrace/example-grpc.py Outdated Show resolved Hide resolved
psx95 added 2 commits May 2, 2024 15:37
The default implementation was not working earlier because the
x-goog-user-project was being set by the code as well as gRPC. Resulting in
duplicating the header. This caused value of the project name to be
repeated, resulting in a project ID that did not exist.
@psx95 psx95 enabled auto-merge (squash) May 2, 2024 18:01
samples/otlptrace/README.md Show resolved Hide resolved
samples/otlptrace/example_grpc.py Show resolved Hide resolved
samples/otlptrace/example_grpc.py Show resolved Hide resolved
@psx95 psx95 merged commit cd0870a into GoogleCloudPlatform:main May 2, 2024
16 checks passed
@psx95
Copy link
Contributor Author

psx95 commented May 2, 2024

Addressed all minor feedback in #321.

@psx95 psx95 deleted the add-grpc-trace-export branch May 2, 2024 19:56
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.

None yet

2 participants