Add span attr "client_ip".
This commit is contained in:
parent
f4b03d7e40
commit
54357f64f2
|
@ -106,6 +106,7 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
span.SetAttributes(
|
span.SetAttributes(
|
||||||
attribute.String("client_ver", cltVersion),
|
attribute.String("client_ver", cltVersion),
|
||||||
attribute.Int("client_platform", cltPlatform),
|
attribute.Int("client_platform", cltPlatform),
|
||||||
|
attribute.String("client_ip", cltIP.String()),
|
||||||
)
|
)
|
||||||
|
|
||||||
server.logger.V(1).Info("New request", "client_ver", cltVersion)
|
server.logger.V(1).Info("New request", "client_ver", cltVersion)
|
||||||
|
|
Loading…
Reference in New Issue