mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 14:11:09 -06:00
[chore] Bump all otel deps (#3241)
This commit is contained in:
parent
291bb68b47
commit
28d57d1f13
193 changed files with 13714 additions and 2346 deletions
6
vendor/go.opentelemetry.io/otel/semconv/internal/v4/net.go
generated
vendored
6
vendor/go.opentelemetry.io/otel/semconv/internal/v4/net.go
generated
vendored
|
|
@ -61,7 +61,7 @@ func (c *NetConv) Host(address string) []attribute.KeyValue {
|
|||
attrs := make([]attribute.KeyValue, 0, n)
|
||||
attrs = append(attrs, c.HostName(h))
|
||||
if p > 0 {
|
||||
attrs = append(attrs, c.HostPort(int(p)))
|
||||
attrs = append(attrs, c.HostPort(p))
|
||||
}
|
||||
return attrs
|
||||
}
|
||||
|
|
@ -252,7 +252,7 @@ func (c *NetConv) Peer(address string) []attribute.KeyValue {
|
|||
attrs := make([]attribute.KeyValue, 0, n)
|
||||
attrs = append(attrs, c.PeerName(h))
|
||||
if p > 0 {
|
||||
attrs = append(attrs, c.PeerPort(int(p)))
|
||||
attrs = append(attrs, c.PeerPort(p))
|
||||
}
|
||||
return attrs
|
||||
}
|
||||
|
|
@ -309,5 +309,5 @@ func splitHostPort(hostport string) (host string, port int) {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
return host, int(p)
|
||||
return host, int(p) // nolint: gosec // Bit size of 16 checked above.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue