We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 495bade commit 1e59b3fCopy full SHA for 1e59b3f
1 file changed
otlp_psqlpy/__init__.py
@@ -76,14 +76,18 @@ def _construct_span(
76
77
if hosts:
78
span_attributes[SpanAttributes.SERVER_ADDRESS] = ", ".join(hosts)
79
- span_attributes[SpanAttributes.SERVER_PORT] = ", ".join(ports)
+ span_attributes[SpanAttributes.SERVER_PORT] = ", ".join(
80
+ [str(port) for port in ports]
81
+ )
82
span_attributes[SpanAttributes.NETWORK_TRANSPORT] = (
83
NetTransportValues.IP_TCP.value
84
)
85
86
elif host_addrs:
87
span_attributes[SpanAttributes.SERVER_ADDRESS] = ", ".join(host_addrs)
88
89
90
91
92
93
0 commit comments