Skip to content

Commit 9aa9cac

Browse files
committed
chore: do not use Span.set_tag_str
Use Span.set_tag instead. Span.set_tag_str is being deprecated and removed
1 parent 56152da commit 9aa9cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datadog_lambda/asm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def asm_start_request(
126126

127127
request_ip = _get_request_header_client_ip(request_headers, peer_ip, True)
128128
if request_ip is not None:
129-
span.set_tag_str("http.client_ip", request_ip)
130-
span.set_tag_str("network.client.ip", request_ip)
129+
span.set_tag("http.client_ip", request_ip)
130+
span.set_tag("network.client.ip", request_ip)
131131

132132
# Encode the parsed query and append it to reconstruct the original raw URI expected by AppSec.
133133
if parsed_query:

0 commit comments

Comments
 (0)