-
Notifications
You must be signed in to change notification settings - Fork 76
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
Log tracing #652
Log tracing #652
Conversation
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/185849184 The labels on this github issue will be updated when the story is started. |
Do we want to have a separate UAA repo PR for the source code changes, rather than reviewing them from here through the submodule? I find it a bit awkward. I was the one who bumped the submodule in the uaa-release feature branch, though it was for ease of developer use while working on it, not necessarily for the PR. edit: I think that we should make a separate commit: it's essentially impossible to comment on the UAA changes. |
There is a separate PR for UAA - cloudfoundry/uaa#2446. Committing the submodule change here was probably not helpful, and we shouldn't review specific uaa changes in a uaa-release PR anyway. |
3c67be4
to
2b780b9
Compare
I removed the UAA change from this PR. We now need to merge the UAA one before we merge this one. |
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.
These commits look extraneous to the PR feature request.
5f6b115
to
763d465
Compare
I have removed a giant mess of unnecessary commits from this branch. I'm not aware of any actual code change that this causes, but I'm not sure that nothing changed. |
DescribeTable("UAA log format", func( | ||
uaaLogFormat string, | ||
optFiles ...string, | ||
) { |
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.
I'd rather not see this kind of reformatting as part of the PR.
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.
Hmmm, interesting. For Go, the reformatting is usually automatic and something that's very difficult to suppress. So the code this was changed probably wasn't changed with an IDE.
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.
If it's coming from the IDE, and they aren't intended line changes, they can can be unselected.
func getFingerPrint(certdata []byte) ( | ||
string, | ||
error, | ||
) { |
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.
The same. I'd rather not see this kind of reformatting as part of the PR.
* The traceId and spanId are populated by the Brave library. Co-authored-by: Bruce Ricard <[email protected]>
* Necessary after the test was fixed so that the regex no longer slurps both [] pairs.
Odd that the log4j pattern must be repeated in so many places.
Trying to fix test failure in CI: "./uaa-release_test.go:48:3: undefined: Expect".
7664adf
to
78dabb6
Compare
Log tracing - this changes the UAA log format used in a bosh uaa deployment to include a trace ID and span ID, and adjusts the tests to match.
This should be merged after cloudfoundry/uaa#2446 in order for the tests to pass. See that PR for details about the feature.
[#185000950]