10 Commits

Author SHA1 Message Date
65cabd74d8 internal/binarylog: Fix data race when calling Write() and Close() in parallel (#4604)
They both touched bufferedSink.writeTicker
2021-07-20 10:58:14 -07:00
bfe1d0dc23 binarylog: Use a simple boolean rather than a sync.Once (#4581) 2021-07-14 11:34:40 -07:00
30dfb4b933 binarylog: Don't continue after failing to marshal the proto (#4582) 2021-07-08 10:06:55 -07:00
51e780ce00 internal/binarylog: Use defer to unlock mutexes (#4590) 2021-07-08 10:06:11 -07:00
91e0aeb192 binarylog: Don't leak the flusher goroutine when closing a Sink (#4583)
time.Ticker.Stop() doesn't close the ticker channel, so we need to signal the goroutine to die some other way
2021-07-07 16:37:57 -07:00
400b4a0a6d binarylog: export Sink (#3879) 2020-09-22 09:52:20 -07:00
506b773066 Implemented component logging (#3617) 2020-06-26 12:04:47 -07:00
a7c1650ef7 fix typos (#3111) 2019-10-22 10:46:34 -07:00
24638f5984 binarylog: call binary log in Client and Server (#2388)
Also includes:
 - Export `NewLoggerFromConfigString` so it can be also used when config string is specified in another way (e.g. command line flag)
 - Export `Logger` so user can install custom sink
 - Add temp file sink implementation
2018-10-31 10:21:20 -07:00
39444b99c0 binarylog: implement methodlogger (#2334)
Method logger will be picked by each RPC at the beginning to log binary entries. It also handles truncating.

This PR also adds script to download proto from grpc/grpc-proto
2018-10-18 17:27:11 -07:00