From 941b60ed00a08ed89ea6395c86883082c352776e Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Mon, 15 Apr 2024 16:34:15 +0300 Subject: [PATCH] Log request info. --- server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.go b/server.go index a4b722f..446c9c0 100644 --- a/server.go +++ b/server.go @@ -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()),