File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,18 @@ def _construct_span(
7676
7777 if hosts :
7878 span_attributes [SpanAttributes .SERVER_ADDRESS ] = ", " .join (hosts )
79- span_attributes [SpanAttributes .SERVER_PORT ] = ", " .join (ports )
79+ span_attributes [SpanAttributes .SERVER_PORT ] = ", " .join (
80+ [str (port ) for port in ports ]
81+ )
8082 span_attributes [SpanAttributes .NETWORK_TRANSPORT ] = (
8183 NetTransportValues .IP_TCP .value
8284 )
8385
8486 elif host_addrs :
8587 span_attributes [SpanAttributes .SERVER_ADDRESS ] = ", " .join (host_addrs )
86- span_attributes [SpanAttributes .SERVER_PORT ] = ", " .join (ports )
88+ span_attributes [SpanAttributes .SERVER_PORT ] = ", " .join (
89+ [str (port ) for port in ports ]
90+ )
8791 span_attributes [SpanAttributes .NETWORK_TRANSPORT ] = (
8892 NetTransportValues .IP_TCP .value
8993 )
You can’t perform that action at this time.
0 commit comments