Skip to content

skywalking: set peer with tag value of peer.address#21137

Merged
lizan merged 4 commits intoenvoyproxy:mainfrom
wbpcode:set-peer-for-upstream-span
May 4, 2022
Merged

skywalking: set peer with tag value of peer.address#21137
lizan merged 4 commits intoenvoyproxy:mainfrom
wbpcode:set-peer-for-upstream-span

Conversation

@wbpcode
Copy link
Copy Markdown
Member

@wbpcode wbpcode commented May 4, 2022

Signed-off-by: wbpcode wangbaiping@corp.netease.com

Commit Message: skywalking: set peer with tag value of peer.address
Additional Description:

Peer is a important attribution of skywalking span. But in the previous skywalking tracer's implementation, it never be set correctly. This PR will set peer of skywalking span with that tag value of peer.address.

This PR consist of two part:

  1. Set peer.address tag when we calling the finalizeUpstreamSpan.
  2. Set peer of skywalking span base on the value of peer.address tag.

Risk Level: Low.
Testing: Added
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
@wbpcode wbpcode requested a review from lizan as a code owner May 4, 2022 04:06
@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented May 4, 2022

cc @wu-sheng @Shikugawa

@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented May 4, 2022

@Shikugawa is busy now. Could you take a look when you have free time? cc @lizan Thanks. 😄

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
@wbpcode wbpcode changed the title skywalking: set peer witch tag value of peer.address skywalking: set peer with tag value of peer.address May 4, 2022
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
@wu-sheng
Copy link
Copy Markdown

wu-sheng commented May 4, 2022

Thanks for helping.

Co-authored-by: José Carlos Chávez <jcchavezs@gmail.com>
@lizan lizan merged commit fa0899c into envoyproxy:main May 4, 2022
ravenblackx pushed a commit to ravenblackx/envoy that referenced this pull request Jun 8, 2022
Peer is a important attribution of skywalking span. But in the previous skywalking tracer's implementation, it never be set correctly. This PR will set peer of skywalking span with that tag value of `peer.address`.

This PR consist of two part:
1. Set `peer.address` tag when we calling the `finalizeUpstreamSpan`.
2. Set peer of skywalking span base on the value of `peer.address` tag.

Risk Level: Low.
Testing: Added
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
Co-authored-by: José Carlos Chávez <jcchavezs@gmail.com>
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.

4 participants