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

[New] Add instance id to response headers #7211

Merged
merged 3 commits into from
Jun 9, 2017
Merged

Conversation

geekgonecrazy
Copy link
Contributor

@RocketChat/core

This will help a lot with debugging multi-instance issues.

Debating putting behind a setting. I don't think we use instance id for anything special, so I don't know that exposing it would be harmful in any way.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-7211 June 9, 2017 18:19 Inactive
@@ -17,6 +17,7 @@ Npm.depends({

Package.onUse(function(api) {
api.use('rate-limit');
api.use('webapp')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@@ -36,3 +36,9 @@ Meteor.publish = function(name, func) {
return func.apply(this, arguments);
});
};

WebApp.rawConnectHandlers.use(function(req, res, next) {
const setHeader = res.setHeader;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

irrelevant on old commit.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-7211 June 9, 2017 18:39 Inactive

WebApp.rawConnectHandlers.use(function(req, res, next) {
const setHeader = res.setHeader;
res.setHeader('X-Instance-ID', InstanceStatus.id());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed 👍

@RocketChat RocketChat deleted a comment Jun 9, 2017
@RocketChat RocketChat deleted a comment Jun 9, 2017
@RocketChat RocketChat deleted a comment Jun 9, 2017
@sampaiodiego
Copy link
Member

should we add a [NEW] badge?

@geekgonecrazy geekgonecrazy changed the title Add instance id to response headers [New] Add instance id to response headers Jun 9, 2017
@geekgonecrazy
Copy link
Contributor Author

@sampaiodiego added!

@sampaiodiego sampaiodiego merged commit ae656a1 into develop Jun 9, 2017
@sampaiodiego sampaiodiego deleted the add_instance_header branch June 9, 2017 20:19
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.

None yet

3 participants