binarylog: generalize binarylog's MethodLogger preparing for new observability features (#5244)

This commit is contained in:
Lidi Zheng
2022-03-21 14:00:02 -07:00
committed by GitHub
parent 63bdcbcce5
commit 1ffd63de37
5 changed files with 38 additions and 21 deletions

View File

@ -350,7 +350,7 @@ func (s) TestLog(t *testing.T) {
func (s) TestTruncateMetadataNotTruncated(t *testing.T) {
testCases := []struct {
ml *MethodLogger
ml *methodLogger
mpPb *pb.Metadata
}{
{
@ -417,7 +417,7 @@ func (s) TestTruncateMetadataNotTruncated(t *testing.T) {
func (s) TestTruncateMetadataTruncated(t *testing.T) {
testCases := []struct {
ml *MethodLogger
ml *methodLogger
mpPb *pb.Metadata
entryLen int
@ -478,7 +478,7 @@ func (s) TestTruncateMetadataTruncated(t *testing.T) {
func (s) TestTruncateMessageNotTruncated(t *testing.T) {
testCases := []struct {
ml *MethodLogger
ml *methodLogger
msgPb *pb.Message
}{
{
@ -511,7 +511,7 @@ func (s) TestTruncateMessageNotTruncated(t *testing.T) {
func (s) TestTruncateMessageTruncated(t *testing.T) {
testCases := []struct {
ml *MethodLogger
ml *methodLogger
msgPb *pb.Message
oldLength uint32