From 0af53f260d879f75628dac02f8935567e76a5bb0 Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Mon, 15 Apr 2024 18:08:01 +0300 Subject: [PATCH] Log request ContentLength. --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index d83f7c7..0fcaee8 100644 --- a/server.go +++ b/server.go @@ -108,6 +108,7 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { attribute.String("request.proto", r.Proto), attribute.Int("request.proto_major", r.ProtoMajor), attribute.Int("request.proto_minor", r.ProtoMinor), + attribute.Int64("request.content_length", r.ContentLength), attribute.String("request.request_uri", r.RequestURI), attribute.String("client_ver", cltVersion), attribute.Int("client_platform", cltPlatform),