From ef13d75b40af0265fafbbd6fead51f4e34bb41c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E4=B9=98=28Qian=20Sheng=29?= <81615037+qiansheng91@users.noreply.github.com> Date: Wed, 8 Nov 2023 12:13:14 +0800 Subject: [PATCH] Fix missing value when span attribute value type is not string type (#1170) --- pkg/protocol/decoder/opentelemetry/otlp_trace_parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/protocol/decoder/opentelemetry/otlp_trace_parser.go b/pkg/protocol/decoder/opentelemetry/otlp_trace_parser.go index 18dd0de8b9..f2363c2c55 100644 --- a/pkg/protocol/decoder/opentelemetry/otlp_trace_parser.go +++ b/pkg/protocol/decoder/opentelemetry/otlp_trace_parser.go @@ -503,7 +503,7 @@ func v1EventsToString(events []*v1.Span_Event) string { func keyValueToString(keyValues []*v1Common.KeyValue) string { var results = make(map[string]string) for _, keyValue := range keyValues { - results[keyValue.Key] = keyValue.Value.GetStringValue() + results[keyValue.Key] = anyValueToString(keyValue.Value) } var d []byte