sofastack / sofa-tracer

SOFATracer is a component for the distributed system call trace. And through a unified traceId logging the logs of various network calls in the invoking link. These logs can be used for quick discovery of faults, service governance, etc.
Apache License 2.0
1.11k stars 377 forks source link

sofatracer的tracerId不一定为30位 #485

Closed JagdtigerI closed 2 years ago

JagdtigerI commented 2 years ago

Describe the bug

image

sofaTracer的tracerId无法保证是30位 后五位为pid,pid可能不满5位,也可超过5位 linux 64 位系统 pid 最高 2^22 为4194304

image

Expected behavior

Actual behavior

Steps to reproduce

Minimal yet complete reproducer code (or GitHub URL to code)

Environment

xzchaoo commented 2 years ago

文档描述有些问题, 没有保证30位. 实践中也不要假设traceId的长度.