-
Notifications
You must be signed in to change notification settings - Fork 16
Add support for x-cloud-trace-context #248
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
Conversation
… the x-cloud-trace-context header
…trace_id & trace_id/span_id formats
…e should do when no span ID is provided)
…e correct behaviour)
parent_id[span_id_length] = s[offset]; | ||
++offset; | ||
} | ||
parent_id[span_id_length] = '\0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to parent_id.back() = '\0';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to undo this as it broke one of the tests - specifically one that send a short span ID of 123
- I think the null terminator was not being added on the end of the number i.e. 123\0
but at the end of the char array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thank you.
Adds support for Google's
x-cloud-trace-context
header.TODO Establish correct Span ID behaviour for when only a Trace ID is given in the header