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 a stub for downstream_client_request_id #276

Merged
merged 2 commits into from
Jun 15, 2023
Merged

Conversation

fgsch
Copy link
Member

@fgsch fgsch commented Jun 14, 2023

This PR adds a stub for downstream_client_request_id to avoid crashing Viceroy.

I'm not sure if it'd be better to return something meaningful. Open to suggestions.

@fgsch fgsch marked this pull request as ready for review June 14, 2023 10:48
Copy link
Contributor

@aturon aturon left a comment

Choose a reason for hiding this comment

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

Thanks much for tackling this!

@fgsch fgsch merged commit 09e4f1b into main Jun 15, 2023
@fgsch fgsch deleted the fgsch/client_request_id branch June 15, 2023 08:29
@GeeWee
Copy link
Contributor

GeeWee commented Jun 27, 2023

I realize I'm a little late, but is there no chance we can return a UUID or something that mimicks what you might get in live environments a little closer?

@fgsch
Copy link
Member Author

fgsch commented Jun 27, 2023

@GeeWee we probably can but do you really need some value or checking for None would suffice?

@GeeWee
Copy link
Contributor

GeeWee commented Jun 27, 2023

I mean I can live with whatever, but currently I generate a UUID for correlation logs, and I use that in e.g. integration test scenarios where I use viceroy to correlate logs from parallel requests. I was hoping to just discard that machinery and switch over to the downstream client ID if possible.

fgsch added a commit that referenced this pull request Jun 28, 2023
Instead of returning an empty string, use the request id to mimic prod closer.
Prompted by @GeeWee in #276.
acfoltzer pushed a commit that referenced this pull request Jun 28, 2023
Instead of returning an empty string, use the request id to mimic prod closer.
Prompted by @GeeWee in #276.
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.

3 participants