deepflowio / deepflow

eBPF Observability - Distributed Tracing and Profiling
https://deepflow.io
Apache License 2.0
3k stars 335 forks source link

[BUG] deepflow agent 采集不到非gateway服务的trace_id #7540

Open lpq131004 opened 4 months ago

lpq131004 commented 4 months ago

Search before asking

DeepFlow Component

Agent

What you expected to happen

通过gateway服务访问a服务的b接口时,能够采集到traceid信息,在l7_flow_log中有trace_id,但是直接向服务a请求接口b时,l7_flow_log中没有trace_id image

How to reproduce

上图中得gateway服务可以调用stock

DeepFlow version

Name: deepflow-server community edition Branch: v6.5 CommitID: cf4793515d95c4d3b957cef89e8e5d0c317d68b7 RevCount: 10760 Compiler: go version go1.21.12 linux/amd64 CompileTime: 2024-07-22 10:26:37

10029-8b0dda74cba2509b0dcae74ae68000f9f374ce8e Name: deepflow-agent community edition Branch: v6.5.4 CommitId: 8b0dda74cba2509b0dcae74ae68000f9f374ce8e RevCount: 10029 Compiler: rustc 1.77.1 (7cf61ebde 2024-03-27) CompileTime: 2024-04-11 01:16:03

DeepFlow agent list

No response

Kubernetes CNI

No response

Operation-System/Kernel version

No response

Anything else

No response

Are you willing to submit a PR?

Code of Conduct

1473371932 commented 4 months ago
  1. 调用时所有应用都透传 trace id 了么?
  2. 这个 trace id 在 header 中叫什么?
  3. deepflow-ctl agent-group-config list $AGENT_GROUP_CONFIG_ID -o yaml看一下目前的组配置
lpq131004 commented 4 months ago

@1473371932 1.调用时所有应用都透传了 trace id 1721897054660 2.使用的skywalking的Java agent,请求时使用sw8传输trace数据,并在每次请求返回的时候都会返回一个tracer字段记录traceid 3.deepflow agent没有分组