Skip to content

general tracing context interface - #16793

Merged
lizan merged 9 commits into
envoyproxy:mainfrom
wbpcode:new-tracing
Jun 29, 2021
Merged

lizan merged 9 commits into
envoyproxy:mainfrom
wbpcode:new-tracing

Conversation

@wbpcode

@wbpcode wbpcode commented Jun 3, 2021 •

Copy link
Copy Markdown
Member

Signed-off-by: wbpcode [email protected]

Sub-PR of #16049. Check #16049 get more background information.

This PR designed a new generic abstraction TraceContext to replace Http::RequestHeaderMap to provide tracing context to the tracer driver. Http::RequestHeaderMapImpl already inherits from TraceContext and implements the relevant interfaces.

Next, we just need simply replace Http::RequestHeaderMap with TraceContext in all tracer drivers implementations. After that, the main body of the entire general tracing system is completed. I'm not sure, whether the replacement step requires a separate PR. Because it does not involve any new logic, but there will be a lot of file changes.

Risk Level: Low.
Testing: Added.
Docs Changes: N/A
Release Notes: N/A

@wbpcode

wbpcode commented Jun 3, 2021

Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16793 (comment) was created by @wbpcode.

see: more, trace.

@wbpcode

wbpcode commented Jun 3, 2021 •

Copy link
Copy Markdown
Member Author

@lizan @mattklein123 This PR is second sub-PR of #16049 and introduces the new TraceContext. All that remains is to replace the ReqeustHeaderMap with the TraceContext. 😃

@wbpcode

wbpcode commented Jun 3, 2021

Copy link
Copy Markdown
Member Author

@jmarantz Here I completed the new TraceContext without LowerCaseString. 😄

@rojkov rojkov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! Looks very good. I've added a couple of question.

Comment thread test/test_common/utility.h Resolved
Comment thread include/envoy/tracing/trace_driver.h Resolved
@wbpcode

wbpcode commented Jun 7, 2021

Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16793 (comment) was created by @wbpcode.

see: more, trace.

Comment thread source/common/http/header_map_impl.h Resolved
Signed-off-by: wbpcode <[email protected]>
rojkov
rojkov previously approved these changes Jun 7, 2021

@rojkov rojkov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! LGTM. @lizan I think this is ready for a second pass.

Comment thread source/common/http/header_map_impl.cc Resolved
Comment thread source/common/http/header_map_impl.cc Resolved
Comment thread test/test_common/utility.h Resolved
@lizan lizan added the waiting label Jun 11, 2021
Signed-off-by: wbpcode <[email protected]>
@wbpcode

wbpcode commented Jun 14, 2021

Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16793 (comment) was created by @wbpcode.

see: more, trace.

@wbpcode
wbpcode requested a review from lizan June 19, 2021 07:28

@lizan lizan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, just one nit

Comment thread source/common/http/header_map_impl.cc Resolved
@wbpcode

wbpcode commented Jun 22, 2021

Copy link
Copy Markdown
Member Author

@lizan ASSERT removed and main merged.

@wbpcode

wbpcode commented Jun 22, 2021

Copy link
Copy Markdown
Member Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16793 (comment) was created by @wbpcode.

see: more, trace.

@wbpcode
wbpcode requested a review from lizan June 24, 2021 01:40
Comment thread source/common/http/header_map_impl.cc Resolved
@lizan
lizan merged commit ad628c5 into envoyproxy:main Jun 29, 2021
chrisxrepo pushed a commit to chrisxrepo/envoy that referenced this pull request Jul 8, 2021
Signed-off-by: wbpcode <[email protected]>

Sub-PR of envoyproxy#16049. Check envoyproxy#16049 get more background information.

This PR designed a new generic abstraction `TraceContext` to replace `Http::RequestHeaderMap` to provide tracing context to the tracer driver. `Http::RequestHeaderMapImpl` already inherits from TraceContext and implements the relevant interfaces.

Next, we just need simply replace `Http::RequestHeaderMap` with `TraceContext` in all tracer drivers implementations. After that, the main body of the entire general tracing system is completed. I'm not sure, whether the replacement step requires a separate PR. Because it does not involve any new logic, but there will be a lot of file changes. 

Risk Level: Low.
Testing: Added.
Docs Changes: N/A
Release Notes:  N/A

Signed-off-by: wbpcode <[email protected]>
Signed-off-by: chris.xin <[email protected]>
lizan pushed a commit that referenced this pull request Jul 8, 2021
Sub-PR of #16049. Check #16049 get more background information.

This PR is last sub-PR of #16049. It simply replaces `Http::RequestHeaderMap` with general `Tracing::TraceContext` in all tracer drivers implementations.

Check #16793 get more info about `Tracing::TraceContext`.

After this PR, the main body of the entire general tracing system is completed. Next, we can try to use the new general tracing system in dubbo and thrift.

Commit Message: replace RequestHeaderMap in tracers with general TraceContext
Risk Level: Low.
Testing: N/A.
Docs Changes: N/A.
Release Notes: N/A.

Signed-off-by: wbpcode <[email protected]>
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Signed-off-by: wbpcode <[email protected]>

Sub-PR of envoyproxy#16049. Check envoyproxy#16049 get more background information.

This PR designed a new generic abstraction `TraceContext` to replace `Http::RequestHeaderMap` to provide tracing context to the tracer driver. `Http::RequestHeaderMapImpl` already inherits from TraceContext and implements the relevant interfaces.

Next, we just need simply replace `Http::RequestHeaderMap` with `TraceContext` in all tracer drivers implementations. After that, the main body of the entire general tracing system is completed. I'm not sure, whether the replacement step requires a separate PR. Because it does not involve any new logic, but there will be a lot of file changes. 

Risk Level: Low.
Testing: Added.
Docs Changes: N/A
Release Notes:  N/A

Signed-off-by: wbpcode <[email protected]>
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
…roxy#17212)

Sub-PR of envoyproxy#16049. Check envoyproxy#16049 get more background information.

This PR is last sub-PR of envoyproxy#16049. It simply replaces `Http::RequestHeaderMap` with general `Tracing::TraceContext` in all tracer drivers implementations.

Check envoyproxy#16793 get more info about `Tracing::TraceContext`.

After this PR, the main body of the entire general tracing system is completed. Next, we can try to use the new general tracing system in dubbo and thrift.

Commit Message: replace RequestHeaderMap in tracers with general TraceContext
Risk Level: Low.
Testing: N/A.
Docs Changes: N/A.
Release Notes: N/A.

Signed-off-by: wbpcode <[email protected]>
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