deepflowio / deepflow

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

[BUG] MySQL协议Span ID解析失败 #8457

Closed qiaozeguang closed 2 weeks ago

qiaozeguang commented 2 weeks ago

Search before asking

DeepFlow Component

Agent

What you expected to happen

执行SQL时,在SQL前添加注释,内部是sw8的值,期望可以正确解析traceid和spanid 实际上只能解析到traceid,解析不到spanid

通过查看代码,发现bug代码如下 image sw8的值里面,是可能存在 = 的,这里在切割sw8值的时候,就出问题了。

How to reproduce

No response

DeepFlow version

v6.5

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

rvql commented 2 weeks ago

是一个问题,不过由于需要同时支持 := 作为 key/value 的分隔符,目前并没有什么好的办法解决

1473371932 commented 2 weeks ago

这里影响到不大,火焰图中可能会有空行;

有个简单的解决方案,就是不要传 base64 encode 过的值