-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Canary: Add -actor CLI flag to be able to set the X-Loki-Actor-Path HTTP header for query requests
#8889
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
base: main
Are you sure you want to change the base?
Conversation
5ed76e5 to
0f8e406
Compare
0f8e406 to
3932338
Compare
9f65234 to
229861a
Compare
229861a to
cbe34b4
Compare
pkg/canary/reader/reader.go
Outdated
| user string, | ||
| pass string, | ||
| tenantID string, | ||
| actorPath string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the name actorpath here? Can't this be actor as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, it can just be actor.
cbe34b4 to
0688a58
Compare
| // the set headers. | ||
| // If the passed request is nil, a new temporary request object is created. | ||
| // This is useful for creating the headers only. | ||
| func (r *Reader) ApplyHeaders(req *http.Request) http.Header { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a test for this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
0688a58 to
c6d91ef
Compare
The CLI argument allows to set the `X-Loki-Actor-Path` HTTP header for requests of the reader. Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
eb67ddf to
4408460
Compare
The CLI argument allows to set the
X-Loki-Actor-PathHTTP header for requests of the reader.What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.mdguide (required)CHANGELOG.mdupdateddocs/sources/upgrading/_index.md