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

ehttp的accessLog支持自定义traceID #370

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

cxlearning
Copy link

No description provided.

@sevennt
Copy link
Contributor

sevennt commented Jan 24, 2024

@cxlearning
Copy link
Author

参考下

https://github.com/gotomicro/ego/blob/master/server/egrpc/interceptor.go#L217 https://github.com/gotomicro/ego/blob/master/server/egrpc/interceptor.go#L292

是否可以满足你的场景?
你好,你发的是egrpc的server端的accessLog。而我的使用场景是使用ehttp客户端发送http请求,ehttp产生的accessLog除了req和resp之外能携带自定义的traceID(像egorm一样)。
eg:
image

@askuy askuy merged commit d421906 into gotomicro:master Jan 25, 2024
0 of 3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants