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 X-B3-Sampled header and sampled flag in Trace object #41

Merged
merged 6 commits into from
Apr 25, 2016

Conversation

drpacman
Copy link
Contributor

The current absence of support for sampled headers means that a sampling decision at the edge of a suite of services is not honoured on downstream systems.

This pull request addresses that issue and ensures that the holistic sampling decision for the current node (be it inherited from upstream request headers, or made locally) is also made available in the trace headers, so they can be attached to any downstream request

*/
Trace.fromHeaders = function(traceName, headers) {
Trace.fromHeaders = function(traceName, headers, sampled) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know the spacing in this is sort of weird, but this leading space is out of character for this file.

@drpacman
Copy link
Contributor Author

drpacman commented Apr 8, 2016

Hi @dustyburwell,
Are there any remaining aspects that you feel need addressing? If not do you know when you may be able to merge this pull?

@dustyburwell
Copy link
Contributor

@drpacman this looks good otherwise. If you wouldn't mind doing a quick rebase, I'll get this merged.

@drpacman
Copy link
Contributor Author

@dustyburwell, hope thats all good now

@dustyburwell dustyburwell merged commit 751f01f into tryfer:master Apr 25, 2016
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