From 2b8897470cc193b00e0e3c1a5add19e3378f30ad Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Mon, 15 Apr 2024 18:13:47 +0300 Subject: [PATCH] Log request host and uri. --- server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.go b/server.go index 0fcaee8..4713b54 100644 --- a/server.go +++ b/server.go @@ -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),