Commit Graph

6 Commits

Author SHA1 Message Date
Zach Reyes 8b3b10bd04
gcp/observability: implement public preview config syntax, logging schema, and exposed metrics () 2022-10-12 15:18:49 -04:00
Lidi Zheng 1ffd63de37
binarylog: generalize binarylog's MethodLogger preparing for new observability features () 2022-03-21 14:00:02 -07:00
Garrett Gutierrez 132187f04c
Modified tests to use tlogger. ()
* 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
Menghan Li 24638f5984
binarylog: call binary log in Client and Server ()
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 () 2018-10-22 13:55:52 -07:00
Menghan Li 39444b99c0
binarylog: implement methodlogger ()
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