Skip to content

tracing: Add B3 support in OpenCensus driver.#7800

Merged
mattklein123 merged 11 commits intoenvoyproxy:masterfrom
g-easy:b3
Aug 12, 2019
Merged

tracing: Add B3 support in OpenCensus driver.#7800
mattklein123 merged 11 commits intoenvoyproxy:masterfrom
g-easy:b3

Conversation

@g-easy
Copy link
Contributor

@g-easy g-easy commented Aug 1, 2019

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

g-easy added 2 commits August 1, 2019 17:09
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>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #7800 was synchronize by g-easy.

see: more, trace.

Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #7800 was synchronize by g-easy.

see: more, trace.

Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #7800 was synchronize by g-easy.

see: more, trace.

Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #7800 was synchronize by g-easy.

see: more, trace.

@jmarantz jmarantz requested a review from htuch August 6, 2019 14:35
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM modulo two small readability improvements.
/wait

g-easy added 4 commits August 7, 2019 15:42
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>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #7800 was synchronize by g-easy.

see: more, trace.

@g-easy
Copy link
Contributor Author

g-easy commented Aug 7, 2019

PTAL. :)

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM modulo last tiny nits.
/wait

registerSpanCatcher();
OpenCensusConfig oc_config;
NiceMock<LocalInfo::MockLocalInfo> local_info;
oc_config.add_incoming_trace_context(OpenCensusConfig::NONE);
Copy link
Member

Choose a reason for hiding this comment

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

Arguably this could be set in the TEST and be a bit narrower.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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?

g-easy added 2 commits August 8, 2019 11:31
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #7800 was synchronize by g-easy.

see: more, trace.

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Thanks!

@htuch
Copy link
Member

htuch commented Aug 8, 2019

/azp retest

@azure-pipelines
Copy link

Command 'retest' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or a specific pipeline for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify a pipeline to run.
    • Example: "run" or "run pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@htuch
Copy link
Member

htuch commented Aug 8, 2019

/retest

@repokitteh-read-only
Copy link

🤷‍♀️ nothing to rebuild.

🐱

Caused by: a #7800 (comment) was created by @htuch.

see: more, trace.

@htuch
Copy link
Member

htuch commented Aug 8, 2019

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@g-easy
Copy link
Contributor Author

g-easy commented Aug 12, 2019

Friendly ping. :)

@mattklein123 mattklein123 merged commit c3a7531 into envoyproxy:master Aug 12, 2019
@g-easy g-easy deleted the b3 branch August 13, 2019 05:34
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.

3 participants