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

add support for action dispatch request id generation #115

Merged
merged 1 commit into from Jan 6, 2017

Conversation

eprothro
Copy link
Contributor

@eprothro eprothro commented Jan 6, 2017

Rails 3.2 and later have ActionDispatch::RequestId in the middleware stack. Rack::Timeout middleware doesn't currently support re-using the request id generated by this middleware in Rails. This PR adds support for that.

Also changes the format of a generated uuid to be a proper type 4 uuid, like nginx, heroku, etc generate for the request id header.

Should have no impact on non-rails applications.

@wuputah
Copy link
Collaborator

wuputah commented Jan 6, 2017

SGTM, thanks for the patch + PR!

@wuputah wuputah merged commit db6bcd0 into zombocom:master Jan 6, 2017
@eprothro eprothro deleted the action-dispatch-support branch January 16, 2017 14:47
@eprothro eprothro restored the action-dispatch-support branch January 16, 2017 14:47
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

2 participants