Commit Graph

36 Commits

Author SHA1 Message Date
Doug Fawley 778860e606
testing: update Go to 1.19 (#5717) 2022-10-17 15:04:34 -07:00
Zach Reyes 8b3b10bd04
gcp/observability: implement public preview config syntax, logging schema, and exposed metrics (#5704) 2022-10-12 15:18:49 -04:00
kennylong 755bf5a191
fix typo in the binary log (#5467)
Signed-off-by: kennylong <im.longkai@gmail.com>
2022-06-24 15:38:14 -07:00
Lidi Zheng 4467a29dbb
gcp/observability: implement logging via binarylog (#5196) 2022-04-06 09:40:41 -07:00
Lidi Zheng 1ffd63de37
binarylog: generalize binarylog's MethodLogger preparing for new observability features (#5244) 2022-03-21 14:00:02 -07:00
Jille Timmermans 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
Jille Timmermans bfe1d0dc23
binarylog: Use a simple boolean rather than a sync.Once (#4581) 2021-07-14 11:34:40 -07:00
Jille Timmermans 30dfb4b933
binarylog: Don't continue after failing to marshal the proto (#4582) 2021-07-08 10:06:55 -07:00
Jille Timmermans 51e780ce00
internal/binarylog: Use defer to unlock mutexes (#4590) 2021-07-08 10:06:11 -07:00
Jille Timmermans 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
Menghan Li 400b4a0a6d
binarylog: export Sink (#3879) 2020-09-22 09:52:20 -07:00
Doug Fawley ff9dd65c90
protoc-gen-go-grpc: generate interfaces optionally; remove NewFooService (#3876) 2020-09-16 10:15:56 -07:00
Doug Fawley 44d73dff99
cmd/protoc-gen-go-grpc: rework service registration (#3828) 2020-08-25 09:28:01 -07:00
Menghan Li 8beeedb8b1
internal: clean up all usages of grpclog, and replace with component (#3719) 2020-08-06 13:19:17 -07:00
Garrett Gutierrez 506b773066
Implemented component logging (#3617) 2020-06-26 12:04:47 -07:00
Damien Neil 15653fec60
all: refactor .pb.go generation (#3451)
Replace various //go:generate lines and regenerate.sh scripts with a
single, top-level regenerate.sh that regenerates all .pb.go files.

Placing generation in a single script ensures that all files are
generated with similar parameters. The new regenerate.sh uses the
protoc-gen-go version defined in test/tools/go.mod and automatically
handles new .proto files as they are added.

Do some minor refactoring on .proto files: Every file now has a
go_package option (which will be required by a future version of the
code generator), and file imports are all relative to the repository
root.
2020-04-24 08:54:03 -07:00
Zou Nengren da1517890d
internal: move parseMethodName func to internal/grpcutil (#3525) 2020-04-17 12:02:55 -07:00
Garrett Gutierrez 132187f04c
Modified tests to use tlogger. (#3343)
* Modified tests to use tlogger.

* Fail on errors, with error expectations.

* Added expects and MixedCapsed grpclb_config tests

* Moved tlogger to grpctest, moved leakcheck tester to grpctest.go

* Added ExpectErrorN()

* Removed redundant leak checks

* Fixed new test

* Made tlogger globals into tlogger methods

* ErrorsLeft -> EndTest

* Removed some redundant lines

* Fixed error in test and empty map in EndTest
2020-02-06 13:03:20 -08:00
Ning Xie 6071e7015f more detailed log message (#3117) 2019-11-07 13:12:57 -08:00
Ning Xie a7c1650ef7 fix typos (#3111) 2019-10-22 10:46:34 -07:00
Anthony Fok 2d6a3edc72 cleanup: fix typo (#3084) 2019-10-09 10:10:07 -07:00
Doug Fawley df162eae76
test: embed Unimplemented___Server in every service (#3076) 2019-10-04 13:22:31 -07:00
ruiHut a074ab2dcf internal: fix a typo. (#2964) 2019-08-09 10:02:03 -07:00
Doug Fawley 59acad4c45
cleanup: more simplifications (#2574) 2019-01-16 13:07:56 -08:00
Doug Fawley 4e92c060da
cleanup: replace unnecessary loops (#2573) 2019-01-16 13:06:58 -08:00
Doug Fawley 38b35dcb7c
cleanup: lower-case starting character of error strings (#2572) 2019-01-15 16:09:35 -08:00
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
Menghan Li 761a6b364c
binarylog: fix end2end test race (#2433) 2018-11-02 10:18:47 -07:00
Doug Fawley 59a2cfbdf9
Remove support for Go1.6-1.8 (#2428) 2018-11-01 15:43:42 -07:00
Menghan Li 0efb1e105d
binarylog: no warning if no config string is set (is empty string) (#2430) 2018-11-01 14:31:10 -07:00
Menghan Li f4273b1bc8
binarylog: fix racy TestClientBinaryLogCancel (#2423) 2018-11-01 10:20:23 -07:00
Menghan Li 3332afdfad
internal: binarylog test replace += 1 with ++ (#2420) 2018-10-31 13:34:00 -07:00
Menghan Li 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
Menghan Li 93a2ad2c87 internal: rename proto imports to pb (#2395) 2018-10-22 13:55:52 -07:00
Menghan Li 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
Menghan Li a338994886
binarylog: implement env variable config parsing (#2299) 2018-09-26 13:03:54 -07:00