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 http.request_id tag to Rack spans #335

Merged
merged 1 commit into from
Feb 1, 2018

Conversation

delner
Copy link
Contributor

@delner delner commented Feb 1, 2018

HTTP requests sometimes have a X-Request-Id header with a UUID or other identifier as a means of tracing requests in logs.

This pull request adds the http.request_id tag to Rack spans if Rack tracing is enabled (which is default for Rails applications.) Typically, if a X-Request-Id header is set, it will use that value. If it's a Rails application, and no X-Request-Id header is set, Rails automatically generates one, which will then be used as the value for this tag.

Sample output:

screenshot from 2018-01-31 18-11-45

@delner delner added enhancement integrations Involves tracing integrations labels Feb 1, 2018
@delner delner added this to the 0.11.2 milestone Feb 1, 2018
@delner delner self-assigned this Feb 1, 2018
@delner delner requested a review from palazzem February 1, 2018 00:01
@delner
Copy link
Contributor Author

delner commented Feb 1, 2018

Addresses #300

Copy link
Contributor

@dasch dasch left a comment

Choose a reason for hiding this comment

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

❤️

Copy link
Contributor

@palazzem palazzem left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@delner delner merged commit 06cd2fc into master Feb 1, 2018
@palazzem palazzem modified the milestones: 0.11.2, 0.11.3 Feb 2, 2018
@delner delner deleted the delner/add_request_id_to_rack branch February 9, 2018 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants