Skip to content

Commit

Permalink
Fix missing value when span attribute value type is not string type (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qiansheng91 authored and yyuuttaaoo committed Nov 8, 2023
1 parent 8b634df commit ef13d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/decoder/opentelemetry/otlp_trace_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef13d75

Please sign in to comment.