From 45a26eae73e008fcf4e7d987ba00c3272a0d1c01 Mon Sep 17 00:00:00 2001 From: Ziqi Zhao Date: Sun, 21 May 2023 12:40:27 +0800 Subject: [PATCH] fix failed tests Signed-off-by: Ziqi Zhao --- .../grpc/otelgrpc/test/stats_handler_test.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/instrumentation/google.golang.org/grpc/otelgrpc/test/stats_handler_test.go b/instrumentation/google.golang.org/grpc/otelgrpc/test/stats_handler_test.go index 7e60c433e99..16c6dbd7906 100644 --- a/instrumentation/google.golang.org/grpc/otelgrpc/test/stats_handler_test.go +++ b/instrumentation/google.golang.org/grpc/otelgrpc/test/stats_handler_test.go @@ -85,12 +85,16 @@ func TestClientStatsHandler(t *testing.T) { }, eventsAttr: []map[attribute.Key]attribute.Value{ { - otelgrpc.RPCMessageTypeKey: attribute.StringValue("SENT"), - otelgrpc.RPCMessageIDKey: attribute.IntValue(1), + otelgrpc.RPCMessageTypeKey: attribute.StringValue("SENT"), + otelgrpc.RPCMessageIDKey: attribute.IntValue(1), + otelgrpc.RPCMessageCompressedSizeKey: attribute.IntValue(0), + otelgrpc.RPCMessageUncompressedSizeKey: attribute.IntValue(10), }, { - otelgrpc.RPCMessageTypeKey: attribute.StringValue("RECEIVED"), - otelgrpc.RPCMessageIDKey: attribute.IntValue(1), + otelgrpc.RPCMessageTypeKey: attribute.StringValue("RECEIVED"), + otelgrpc.RPCMessageIDKey: attribute.IntValue(1), + otelgrpc.RPCMessageCompressedSizeKey: attribute.IntValue(0), + otelgrpc.RPCMessageUncompressedSizeKey: attribute.IntValue(10), }, }, },