@@ -268,20 +268,19 @@ 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" : {},
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" ,
279
278
},
280
279
},
281
280
{
282
281
"name" : "GET / http send" ,
283
282
"kind" : trace_api .SpanKind .INTERNAL ,
284
- "attributes" : {"type" : "http.response.body" },
283
+ "attributes" : {},
285
284
},
286
285
{
287
286
"name" : "GET /" ,
@@ -358,7 +357,7 @@ def add_more_body_spans(expected: list):
358
357
more_body_span = {
359
358
"name" : "GET / http send" ,
360
359
"kind" : trace_api .SpanKind .INTERNAL ,
361
- "attributes" : {"type" : "http.response.body" },
360
+ "attributes" : {},
362
361
}
363
362
extra_spans = [more_body_span ] * 3
364
363
expected [2 :2 ] = extra_spans
@@ -396,12 +395,12 @@ def add_body_and_trailer_span(expected: list):
396
395
body_span = {
397
396
"name" : "GET / http send" ,
398
397
"kind" : trace_api .SpanKind .INTERNAL ,
399
- "attributes" : {"type" : "http.response.body" },
398
+ "attributes" : {},
400
399
}
401
400
trailer_span = {
402
401
"name" : "GET / http send" ,
403
402
"kind" : trace_api .SpanKind .INTERNAL ,
404
- "attributes" : {"type" : "http.response.trailers" },
403
+ "attributes" : {},
405
404
}
406
405
expected [2 :2 ] = [body_span ]
407
406
expected [4 :4 ] = [trailer_span ] * 2
@@ -582,33 +581,31 @@ def test_websocket(self):
582
581
{
583
582
"name" : "/ websocket receive" ,
584
583
"kind" : trace_api .SpanKind .INTERNAL ,
585
- "attributes" : {"type" : "websocket.connect" },
584
+ "attributes" : {},
586
585
},
587
586
{
588
587
"name" : "/ websocket send" ,
589
588
"kind" : trace_api .SpanKind .INTERNAL ,
590
- "attributes" : {"type" : "websocket.accept" },
589
+ "attributes" : {},
591
590
},
592
591
{
593
592
"name" : "/ websocket receive" ,
594
593
"kind" : trace_api .SpanKind .INTERNAL ,
595
594
"attributes" : {
596
- "type" : "websocket.receive" ,
597
595
SpanAttributes .HTTP_STATUS_CODE : 200 ,
598
596
},
599
597
},
600
598
{
601
599
"name" : "/ websocket send" ,
602
600
"kind" : trace_api .SpanKind .INTERNAL ,
603
601
"attributes" : {
604
- "type" : "websocket.send" ,
605
602
SpanAttributes .HTTP_STATUS_CODE : 200 ,
606
603
},
607
604
},
608
605
{
609
606
"name" : "/ websocket receive" ,
610
607
"kind" : trace_api .SpanKind .INTERNAL ,
611
- "attributes" : {"type" : "websocket.disconnect" },
608
+ "attributes" : {},
612
609
},
613
610
{
614
611
"name" : "/" ,
@@ -638,6 +635,7 @@ def test_websocket_traceresponse_header(self):
638
635
set_global_response_propagator (TraceResponsePropagator ())
639
636
640
637
self .scope = {
638
+ "type" : "websocket" ,
641
639
"http_version" : "1.1" ,
642
640
"scheme" : "ws" ,
643
641
"path" : "/" ,
0 commit comments