@@ -268,20 +268,20 @@ def validate_outputs(self, outputs, error=None, modifiers=None):
268
268
{
269
269
"name" : "GET / http receive" ,
270
270
"kind" : trace_api .SpanKind .INTERNAL ,
271
- "attributes" : {"type" : "http.request" },
271
+ "attributes" : {"asgi.event. type" : "http.request" },
272
272
},
273
273
{
274
274
"name" : "GET / http send" ,
275
275
"kind" : trace_api .SpanKind .INTERNAL ,
276
276
"attributes" : {
277
277
SpanAttributes .HTTP_STATUS_CODE : 200 ,
278
- "type" : "http.response.start" ,
278
+ "asgi.event. type" : "http.response.start" ,
279
279
},
280
280
},
281
281
{
282
282
"name" : "GET / http send" ,
283
283
"kind" : trace_api .SpanKind .INTERNAL ,
284
- "attributes" : {"type" : "http.response.body" },
284
+ "attributes" : {"asgi.event. type" : "http.response.body" },
285
285
},
286
286
{
287
287
"name" : "GET /" ,
@@ -358,7 +358,7 @@ def add_more_body_spans(expected: list):
358
358
more_body_span = {
359
359
"name" : "GET / http send" ,
360
360
"kind" : trace_api .SpanKind .INTERNAL ,
361
- "attributes" : {"type" : "http.response.body" },
361
+ "attributes" : {"asgi.event. type" : "http.response.body" },
362
362
}
363
363
extra_spans = [more_body_span ] * 3
364
364
expected [2 :2 ] = extra_spans
@@ -396,12 +396,12 @@ def add_body_and_trailer_span(expected: list):
396
396
body_span = {
397
397
"name" : "GET / http send" ,
398
398
"kind" : trace_api .SpanKind .INTERNAL ,
399
- "attributes" : {"type" : "http.response.body" },
399
+ "attributes" : {"asgi.event. type" : "http.response.body" },
400
400
}
401
401
trailer_span = {
402
402
"name" : "GET / http send" ,
403
403
"kind" : trace_api .SpanKind .INTERNAL ,
404
- "attributes" : {"type" : "http.response.trailers" },
404
+ "attributes" : {"asgi.event. type" : "http.response.trailers" },
405
405
}
406
406
expected [2 :2 ] = [body_span ]
407
407
expected [4 :4 ] = [trailer_span ] * 2
@@ -582,33 +582,33 @@ def test_websocket(self):
582
582
{
583
583
"name" : "/ websocket receive" ,
584
584
"kind" : trace_api .SpanKind .INTERNAL ,
585
- "attributes" : {"type" : "websocket.connect" },
585
+ "attributes" : {"asgi.event. type" : "websocket.connect" },
586
586
},
587
587
{
588
588
"name" : "/ websocket send" ,
589
589
"kind" : trace_api .SpanKind .INTERNAL ,
590
- "attributes" : {"type" : "websocket.accept" },
590
+ "attributes" : {"asgi.event. type" : "websocket.accept" },
591
591
},
592
592
{
593
593
"name" : "/ websocket receive" ,
594
594
"kind" : trace_api .SpanKind .INTERNAL ,
595
595
"attributes" : {
596
- "type" : "websocket.receive" ,
596
+ "asgi.event. type" : "websocket.receive" ,
597
597
SpanAttributes .HTTP_STATUS_CODE : 200 ,
598
598
},
599
599
},
600
600
{
601
601
"name" : "/ websocket send" ,
602
602
"kind" : trace_api .SpanKind .INTERNAL ,
603
603
"attributes" : {
604
- "type" : "websocket.send" ,
604
+ "asgi.event. type" : "websocket.send" ,
605
605
SpanAttributes .HTTP_STATUS_CODE : 200 ,
606
606
},
607
607
},
608
608
{
609
609
"name" : "/ websocket receive" ,
610
610
"kind" : trace_api .SpanKind .INTERNAL ,
611
- "attributes" : {"type" : "websocket.disconnect" },
611
+ "attributes" : {"asgi.event. type" : "websocket.disconnect" },
612
612
},
613
613
{
614
614
"name" : "/" ,
0 commit comments