We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af84d3f commit 38aef5fCopy full SHA for 38aef5f
pkg/tracegen/templated.go
@@ -245,9 +245,9 @@ func (g *TemplatedGenerator) generateNetworkAttributes(tmpl *internalSpanTemplat
245
246
if parent != nil && parent.Kind() == ptrace.SpanKindClient {
247
ip, _ := span.Attributes().Get("net.sock.host.addr")
248
- putIfNotExists(parent.Attributes(), "net.sock.peer.addr", ip)
+ putIfNotExists(parent.Attributes(), "net.sock.peer.addr", ip.Str())
249
name, _ := span.Attributes().Get("net.host.name")
250
- putIfNotExists(parent.Attributes(), "net.peer.name", name)
+ putIfNotExists(parent.Attributes(), "net.peer.name", name.Str())
251
}
252
253
0 commit comments