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

added service id and service name headers when X-3scale-debug is used #987

Merged
merged 3 commits into from
Feb 11, 2019

Conversation

palmieric
Copy link

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

@palmieric palmieric requested a review from a team as a code owner February 11, 2019 12:40
@@ -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
Copy link
Contributor

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?

Copy link
Author

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.

Copy link
Contributor

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.

Copy link
Author

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

Copy link
Contributor

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.

Copy link
Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

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.

@mikz mikz merged commit b01e551 into 3scale:master Feb 11, 2019
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