Log request info.
This commit is contained in:
parent
aaee4c64d1
commit
941b60ed00
|
@ -104,6 +104,10 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
cltIP := GetIP(r)
|
cltIP := GetIP(r)
|
||||||
|
|
||||||
span.SetAttributes(
|
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.String("client_ver", cltVersion),
|
||||||
attribute.Int("client_platform", cltPlatform),
|
attribute.Int("client_platform", cltPlatform),
|
||||||
attribute.String("client_ip", cltIP.String()),
|
attribute.String("client_ip", cltIP.String()),
|
||||||
|
|
Loading…
Reference in New Issue