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

frontend: clone headers in WithXXX query request methods #8379

Merged

Conversation

ortuman
Copy link
Contributor

@ortuman ortuman commented Jun 14, 2024

What this PR does

follow-up of #8342

This PR extends the cloning of headers in all WithXXX methods for instant and range query requests.

Which issue(s) this PR fixes or relates to

Fixes N/A

Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
@ortuman ortuman requested a review from colega June 14, 2024 16:05
@ortuman ortuman requested a review from a team as a code owner June 14, 2024 16:05
@colega
Copy link
Contributor

colega commented Jun 17, 2024

Why do we need to clone them? Can we have a test explaining it? Otherwise, there's nothing preventing me from sending a follow up PR cleaning up that function call, which "isn't needed".

ref: #8379 (comment)

Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
@ortuman ortuman force-pushed the ortuman/frontend/clone-headers-in-prometheus-query-request branch from 69d26a4 to 7048187 Compare June 17, 2024 08:24
Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
@ortuman ortuman force-pushed the ortuman/frontend/clone-headers-in-prometheus-query-request branch from c6bedda to 7a2908b Compare June 17, 2024 08:33
Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
@ortuman ortuman merged commit 878f963 into main Jun 17, 2024
29 checks passed
@ortuman ortuman deleted the ortuman/frontend/clone-headers-in-prometheus-query-request branch June 17, 2024 10:27
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