From 54357f64f273451e5f5b3b8f8894a65f8d698ba8 Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Mon, 15 Apr 2024 14:22:02 +0300 Subject: [PATCH] Add span attr "client_ip". --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index f3faba3..2263614 100644 --- a/server.go +++ b/server.go @@ -106,6 +106,7 @@ func (server *RPCServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { span.SetAttributes( attribute.String("client_ver", cltVersion), attribute.Int("client_platform", cltPlatform), + attribute.String("client_ip", cltIP.String()), ) server.logger.V(1).Info("New request", "client_ver", cltVersion)