Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

时钟回拨情况下TraceId重复 #389

Closed
gitYupan opened this issue Oct 3, 2020 · 2 comments
Closed

时钟回拨情况下TraceId重复 #389

gitYupan opened this issue Oct 3, 2020 · 2 comments

Comments

@gitYupan
Copy link

gitYupan commented Oct 3, 2020

Your question

TraceId 产生规则是: 服务器 IP + 产生 ID 时候的时间 + 自增序列 + 当前进程号
上面的生成规则在时钟回拨的情况下,产生的TraceId应该会重复

@glmapper
Copy link
Contributor

glmapper commented Oct 4, 2020

@gitYupan 产生 tracerId 的几个条件还是比较严格的,时钟回拨的场景下是可能会存在产生相同 TraceId 的情况;如果有兴趣可以提个 PR 支持下允许自定义 tracerId

@glmapper
Copy link
Contributor

glmapper commented Oct 4, 2020

to #235

@glmapper glmapper closed this as completed Dec 7, 2020
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

No branches or pull requests

2 participants