From 07a4a6cc885db9ef4f56d1c5dec0f31ae3f37324 Mon Sep 17 00:00:00 2001 From: Yingrong Zhao <22300958+VinozzZ@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:49:03 -0400 Subject: [PATCH] fix test data --- .../net/http/otelhttp/internal/semconv/httpconv_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/net/http/otelhttp/internal/semconv/httpconv_test.go b/instrumentation/net/http/otelhttp/internal/semconv/httpconv_test.go index 2d6868fedb4..f1b955d329a 100644 --- a/instrumentation/net/http/otelhttp/internal/semconv/httpconv_test.go +++ b/instrumentation/net/http/otelhttp/internal/semconv/httpconv_test.go @@ -137,11 +137,12 @@ func TestClientRequest(t *testing.T) { want := []attribute.KeyValue{ attribute.String("http.request.method", "POST"), - attribute.String("http.request.method_original", "POST"), + attribute.String("http.request.method_original", "pOST"), attribute.String("url.full", url), attribute.String("server.address", "example.com"), attribute.Int("server.port", 8888), attribute.String("user_agent.original", "go-test-agent"), + attribute.String("network.protocol.version", "1.1"), } got := newHTTPClient{}.RequestTraceAttrs(req) assert.ElementsMatch(t, want, got)