We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c68d0fd commit c7b000dCopy full SHA for c7b000d
instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py
@@ -666,7 +666,6 @@ async def otel_receive():
666
if receive_span.is_recording():
667
if message["type"] == "websocket.receive":
668
set_status_code(receive_span, 200)
669
- receive_span.set_attribute("type", message["type"])
670
return message
671
672
return otel_receive
@@ -697,7 +696,7 @@ async def otel_send(message: dict[str, Any]):
697
696
elif message["type"] == "websocket.send":
698
set_status_code(server_span, 200)
699
set_status_code(send_span, 200)
700
- send_span.set_attribute("type", message["type"])
+
701
if (
702
server_span.is_recording()
703
and server_span.kind == trace.SpanKind.SERVER
0 commit comments