-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support option for headerXRequestID #8
Conversation
if rid == "" { | ||
rid = cfg.generator() | ||
// Set the id to ensure that the requestid is in the request | ||
c.Request.Header.Add(headerXRequestID, rid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicating line 41, so deleted.
@appleboy Review plz. |
Codecov Report
@@ Coverage Diff @@
## master #8 +/- ##
==========================================
+ Coverage 91.66% 92.85% +1.19%
==========================================
Files 2 2
Lines 24 28 +4
==========================================
+ Hits 22 26 +4
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
What
SSIA
Why
Adding option for declaring header key is helpful. For example, in the case we want to call other micro services from gin framework and propagate request id to the services.