Log request info.

This commit is contained in:
Владислав Весельский 2024-04-15 16:34:15 +03:00
parent aaee4c64d1
commit 941b60ed00
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
cltIP := GetIP(r)
span.SetAttributes(
attribute.String("request_method", r.Method),
attribute.String("request_proto", r.Proto),
attribute.Int("request_proto_major", r.ProtoMajor),
attribute.Int("request_proto_minor", r.ProtoMinor),
attribute.String("client_ver", cltVersion),
attribute.Int("client_platform", cltPlatform),
attribute.String("client_ip", cltIP.String()),