Add span attr "client_ip".

This commit is contained in:
Владислав Весельский 2024-04-15 14:22:02 +03:00
parent f4b03d7e40
commit 54357f64f2
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
span.SetAttributes(
attribute.String("client_ver", cltVersion),
attribute.Int("client_platform", cltPlatform),
attribute.String("client_ip", cltIP.String()),
)
server.logger.V(1).Info("New request", "client_ver", cltVersion)