tracing: Add B3 support in OpenCensus driver.#7800
Merged
mattklein123 merged 11 commits intoenvoyproxy:masterfrom Aug 12, 2019
Merged
tracing: Add B3 support in OpenCensus driver.#7800mattklein123 merged 11 commits intoenvoyproxy:masterfrom
mattklein123 merged 11 commits intoenvoyproxy:masterfrom
Conversation
This makes it possible to propagate, generate, and translate B3-format trace context headers. Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
These come from tracing.grpc.pb.h which is autogenerated by the protobuf compiler. Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
htuch
suggested changes
Aug 7, 2019
Member
htuch
left a comment
There was a problem hiding this comment.
LGTM modulo two small readability improvements.
/wait
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Contributor
Author
|
PTAL. :) |
htuch
suggested changes
Aug 7, 2019
Member
htuch
left a comment
There was a problem hiding this comment.
LGTM modulo last tiny nits.
/wait
| registerSpanCatcher(); | ||
| OpenCensusConfig oc_config; | ||
| NiceMock<LocalInfo::MockLocalInfo> local_info; | ||
| oc_config.add_incoming_trace_context(OpenCensusConfig::NONE); |
Member
There was a problem hiding this comment.
Arguably this could be set in the TEST and be a bit narrower.
Contributor
Author
There was a problem hiding this comment.
I would prefer to leave this as-is:
- Reduces code duplication in
TESTs. - Acts as a smoke-test for incoming headers that aren't found.
As an alternative: how about if I make TEST pass the incoming trace context type to testIncomingHeaders but still keep this code and all the outgoing contexts (because I want to test translation) in the latter?
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Member
|
/azp retest |
|
Command 'retest' is not supported by Azure Pipelines. Supported commands
See additional documentation. |
Member
|
/retest |
|
🤷♀️ nothing to rebuild. |
Member
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Contributor
Author
|
Friendly ping. :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes it possible to propagate, generate, and translate
B3-format trace context headers.
Signed-off-by: Emil Mikulic g-easy@users.noreply.github.com