Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Added client_ip as additional (non-standard) field and IP origin log

Mikail KOCAK9ed65fa17159
diff --git a/saleor/graphql/views.py b/saleor/graphql/views.py
index b8e153bbe5..91f7540b84 100644
--- a/saleor/graphql/views.py
+++ b/saleor/graphql/views.py
@@ -134,6 +134,10 @@ class GraphQLView(View):
span.set_tag(ot_tags.PEER_HOST_IPV6, ip)
else:
continue
+ span.set_tag("http.client_ip", ip)
+ span.log_kv(
+ {"http.client_ip_originated_from": settings.REAL_IP_ENVIRON}
+ )
break
response = self._handle_query(request)