Log request host and uri.

This commit is contained in:
Владислав Весельский 2024-04-15 18:13:47 +03:00
parent 0af53f260d
commit 2b8897470c
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
attribute.Int("request.proto_major", r.ProtoMajor),
attribute.Int("request.proto_minor", r.ProtoMinor),
attribute.Int64("request.content_length", r.ContentLength),
attribute.String("request.host", r.Host),
attribute.String("request.remote_addr", r.RemoteAddr),
attribute.String("request.request_uri", r.RequestURI),
attribute.String("client_ver", cltVersion),
attribute.Int("client_platform", cltPlatform),