envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
25.05k stars 4.82k forks source link

start_child_span config creates spans with the wrong span.kind #29549

Closed MisterSquishy closed 1 year ago

MisterSquishy commented 1 year ago

Title: start_child_span config creates spans with the wrong span.kind

Description: when the start_child_span config is set to true, i would expect envoy to emit router .* egress spans with the span.kind set to client. instead, it copies the parent config, which has span.kind set to server

Repro steps: set the start_child_span config to true and inspect the emitted spans

adisuissa commented 1 year ago

Seems to be a question related to tracing. This feature has been there for a while (since #1931). cc @mattklein123 @wbpcode as tracing domain experts.

wbpcode commented 1 year ago

Hi, which tracer are you using? Different tracers may have different behaviors.

MisterSquishy commented 1 year ago

we are using the opentelemetry tracer!

wbpcode commented 1 year ago

got it. I think this is a similar problem with previous zipkin. #22987

The tracer could work on two mode:

Because historical reason, value of Tracing::OperationName is mainly depend on the traffic direction and could use it to determine the type of span.

Seems we need a more complete solution to this problem. cc @mattklein123

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.