Skip to content

Commit de843c6

Browse files
committed
Fix client address is set to server address
1 parent 3708604 commit de843c6

File tree

1 file changed

+1
-1
lines changed
  • opentelemetry-instrumentation/src/opentelemetry/instrumentation

1 file changed

+1
-1
lines changed

opentelemetry-instrumentation/src/opentelemetry/instrumentation/_semconv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def _set_http_host_server(result, host, sem_conv_opt_in_mode):
354354
if _report_old(sem_conv_opt_in_mode):
355355
set_string_attribute(result, SpanAttributes.HTTP_HOST, host)
356356
if _report_new(sem_conv_opt_in_mode):
357-
set_string_attribute(result, CLIENT_ADDRESS, host)
357+
set_string_attribute(result, SERVER_ADDRESS, host)
358358

359359

360360
# net.peer.ip -> net.sock.peer.addr

0 commit comments

Comments
 (0)