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

logging: store the propagated context in the reporter #740

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

kindermoumoute
Copy link
Contributor

#739 doesn't work without this change because the fields were not extracted from the same context than the one being propagated. I should've tested this better in my previous MR 🙌

Changes

  • Use a context with injected field in the reporter in order to support logging: add AddFields #739
  • Add a helper to execute code without ciruclar dependency from the testpb.TestPingService.Ping method

Verification

  • Call AddFields with the Ping method using the PingFunc helper
  • Update TestPing to assert a new field

@johanbrandhorst johanbrandhorst merged commit bea7c0e into grpc-ecosystem:main Dec 28, 2024
6 of 7 checks passed
@johanbrandhorst
Copy link
Collaborator

Thank you for your contribution!

@kindermoumoute kindermoumoute deleted the fixaddfields branch December 28, 2024 16:18
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