This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commits on Mar 20, 2020
-
trace: replace LazyLog with LogFields
LazyLog wouldn't log to opentracing. So we remove it and add a LazyLogger for fmt.Stringers such that we can update call sites of LazyLog.
Configuration menu - View commit details
-
Copy full SHA for bd7b0e6 - Browse repository at this point
Copy the full SHA bd7b0e6View commit details -
trace: LazyPrintf logs to opentracing
LazyPrintf is used quite extensively in our codebase. I wanted to update all to LogFields, but it is too many callsites. Instead I have made LazyPrintf call LogFields, but still preserve the lazy behaviour. Follow-up commits will clean up call sites of LazyPrintf.
Configuration menu - View commit details
-
Copy full SHA for 69872a8 - Browse repository at this point
Copy the full SHA 69872a8View commit details -
search: use LogFields for searchSymbols
One callsite updated to use LogFields instead. I wanted to update lots, but stopped when I realised how much effort that would be. Going forward the updates will be much more targetted.
Configuration menu - View commit details
-
Copy full SHA for 7e364a4 - Browse repository at this point
Copy the full SHA 7e364a4View commit details -
trace: add SQL for better lazy logging
This adds a new opentracing Field which emits much nicer SQL logs.
Configuration menu - View commit details
-
Copy full SHA for a8ea5cc - Browse repository at this point
Copy the full SHA a8ea5ccView commit details -
doc: mention jaeger URL when port forwarding
I found this quite convenient to just click on, instead of assuming the admin knows to check localhost.
Configuration menu - View commit details
-
Copy full SHA for 755ce07 - Browse repository at this point
Copy the full SHA 755ce07View commit details -
db: use internal/trace for sql tracing
Only logged to opentracing currently. This will allow us to also log to net/trace.
Configuration menu - View commit details
-
Copy full SHA for 801858f - Browse repository at this point
Copy the full SHA 801858fView commit details -
go lint now knows to check the printf args which is cool, so it picked up this misuse.
Configuration menu - View commit details
-
Copy full SHA for a4dc4bb - Browse repository at this point
Copy the full SHA a4dc4bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5068e89 - Browse repository at this point
Copy the full SHA 5068e89View commit details -
trace: correctly marshal lazy otlog.Fields
otlog.Field.String() just marshals the function for Lazy fields, instead of actually calling the function to emit its values. This lead to the net/trace logs to just log the function pointer numbers, instead of the values you want.
Configuration menu - View commit details
-
Copy full SHA for 26069d5 - Browse repository at this point
Copy the full SHA 26069d5View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.