-
Notifications
You must be signed in to change notification settings - Fork 170
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
added service id and service name headers when X-3scale-debug is used #987
Conversation
gateway/src/apicast/proxy.lua
Outdated
@@ -85,6 +85,8 @@ local function output_debug_headers(service, usage, credentials) | |||
ngx.header["X-3scale-credentials"] = credentials | |||
ngx.header["X-3scale-usage"] = usage | |||
ngx.header["X-3scale-hostname"] = ngx.var.hostname | |||
ngx.header["X-3scale-svc-id"] = service.id |
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 abbreviating to svc
instead of using service
?
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.
Just for readability X-3scale-service-name looked a really long name.
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.
@palmieric It is just one character more than X-3scale-credentials
. I'd prefer service
instead of svc
.
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.
Ok will change it and resubmit
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.
You can just force push to this PR.
And you'll need a changelog entry.
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
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.
You'll still need to add a new entry to CHANGELOG.md file.
Added info on the services in the response headers when using X-3scale-debug headers as asked in https://issues.jboss.org/browse/THREESCALE-1849