-
Notifications
You must be signed in to change notification settings - Fork 141
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
setting userAuthUserId tag from ai_authUser cookie field #394
setting userAuthUserId tag from ai_authUser cookie field #394
Conversation
Thanks for this PR! Looks great! |
@@ -122,6 +123,7 @@ describe("AutoCollection/HttpRequestParser", () => { | |||
var newTags = helper.getRequestTags(originalTags); | |||
assert.equal(newTags[(<any>HttpRequestParser).keys.locationIp], 'originalIp'); | |||
assert.equal(newTags[(<any>HttpRequestParser).keys.userId], 'originalUserId'); | |||
assert.equal(newTags[(<any>HttpRequestParser).keys.userAuthUserId], 'originalAuthUserId'); |
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.
You might want to add another assertion like this to the next section "should read tags from headers"
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.
Yep! I didn't notice the next section.
Done!
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.
@OsvaldoRosado I still dont know why the tests failed...
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.
Looks like something changed in the test environment. I'll look into this
A small contribution to populate
userAuthUserId
fromai_authUser
cookie field (likeai_user
)Seems that also concerns #356