@@ -268,20 +268,20 @@ def validate_outputs(self, outputs, error=None, modifiers=None):
268268 {
269269 "name" : "GET / http receive" ,
270270 "kind" : trace_api .SpanKind .INTERNAL ,
271- "attributes" : {"type" : "http.request" },
271+ "attributes" : {"asgi.event. type" : "http.request" },
272272 },
273273 {
274274 "name" : "GET / http send" ,
275275 "kind" : trace_api .SpanKind .INTERNAL ,
276276 "attributes" : {
277277 SpanAttributes .HTTP_STATUS_CODE : 200 ,
278- "type" : "http.response.start" ,
278+ "asgi.event. type" : "http.response.start" ,
279279 },
280280 },
281281 {
282282 "name" : "GET / http send" ,
283283 "kind" : trace_api .SpanKind .INTERNAL ,
284- "attributes" : {"type" : "http.response.body" },
284+ "attributes" : {"asgi.event. type" : "http.response.body" },
285285 },
286286 {
287287 "name" : "GET /" ,
@@ -358,7 +358,7 @@ def add_more_body_spans(expected: list):
358358 more_body_span = {
359359 "name" : "GET / http send" ,
360360 "kind" : trace_api .SpanKind .INTERNAL ,
361- "attributes" : {"type" : "http.response.body" },
361+ "attributes" : {"asgi.event. type" : "http.response.body" },
362362 }
363363 extra_spans = [more_body_span ] * 3
364364 expected [2 :2 ] = extra_spans
@@ -396,12 +396,12 @@ def add_body_and_trailer_span(expected: list):
396396 body_span = {
397397 "name" : "GET / http send" ,
398398 "kind" : trace_api .SpanKind .INTERNAL ,
399- "attributes" : {"type" : "http.response.body" },
399+ "attributes" : {"asgi.event. type" : "http.response.body" },
400400 }
401401 trailer_span = {
402402 "name" : "GET / http send" ,
403403 "kind" : trace_api .SpanKind .INTERNAL ,
404- "attributes" : {"type" : "http.response.trailers" },
404+ "attributes" : {"asgi.event. type" : "http.response.trailers" },
405405 }
406406 expected [2 :2 ] = [body_span ]
407407 expected [4 :4 ] = [trailer_span ] * 2
@@ -582,33 +582,33 @@ def test_websocket(self):
582582 {
583583 "name" : "/ websocket receive" ,
584584 "kind" : trace_api .SpanKind .INTERNAL ,
585- "attributes" : {"type" : "websocket.connect" },
585+ "attributes" : {"asgi.event. type" : "websocket.connect" },
586586 },
587587 {
588588 "name" : "/ websocket send" ,
589589 "kind" : trace_api .SpanKind .INTERNAL ,
590- "attributes" : {"type" : "websocket.accept" },
590+ "attributes" : {"asgi.event. type" : "websocket.accept" },
591591 },
592592 {
593593 "name" : "/ websocket receive" ,
594594 "kind" : trace_api .SpanKind .INTERNAL ,
595595 "attributes" : {
596- "type" : "websocket.receive" ,
596+ "asgi.event. type" : "websocket.receive" ,
597597 SpanAttributes .HTTP_STATUS_CODE : 200 ,
598598 },
599599 },
600600 {
601601 "name" : "/ websocket send" ,
602602 "kind" : trace_api .SpanKind .INTERNAL ,
603603 "attributes" : {
604- "type" : "websocket.send" ,
604+ "asgi.event. type" : "websocket.send" ,
605605 SpanAttributes .HTTP_STATUS_CODE : 200 ,
606606 },
607607 },
608608 {
609609 "name" : "/ websocket receive" ,
610610 "kind" : trace_api .SpanKind .INTERNAL ,
611- "attributes" : {"type" : "websocket.disconnect" },
611+ "attributes" : {"asgi.event. type" : "websocket.disconnect" },
612612 },
613613 {
614614 "name" : "/" ,
0 commit comments