[[
  {
    "name": "fastapi.request",
    "service": "fastapi",
    "resource": "websocket /ws",
    "trace_id": 0,
    "span_id": 1,
    "parent_id": 0,
    "type": "web",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d44d7200000000",
      "component": "fastapi",
      "http.upgraded": "websocket",
      "http.url": "ws://testserver/ws",
      "http.useragent": "testclient",
      "language": "python",
      "runtime-id": "8f8a9adec1944786b373d1d0f0f64e88",
      "span.kind": "server"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 31650
    },
    "duration": 586000,
    "start": 1758743922891823000
  },
     {
       "name": "websocket.receive",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 0,
       "span_id": 2,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi"
       },
       "duration": 36000,
       "start": 1758743922892299000
     },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 0,
       "span_id": 3,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d44d7200000000",
         "_dd.span_links": "[{\"trace_id\": \"68d44d72000000008c188f646ba707da\", \"span_id\": \"b685dc792dfdbdc0\", \"attributes\": {\"dd.kind\": \"resuming\"}}]",
         "component": "fastapi",
         "language": "python",
         "network.client.ip": "testclient",
         "out.host": "testclient",
         "span.kind": "producer",
         "websocket.message.type": "text"
       },
       "metrics": {
         "_dd.tracer_kr": 1.0,
         "_sampling_priority_v1": 1,
         "websocket.message.frames": 1,
         "websocket.message.length": 27
       },
       "duration": 189000,
       "start": 1758743922892760000
     },
     {
       "name": "websocket.receive",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 0,
       "span_id": 4,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d44d7200000000",
         "_dd.span_links": "[{\"trace_id\": \"68d44d72000000008c188f646ba707da\", \"span_id\": \"b685dc792dfdbdc0\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
         "component": "fastapi",
         "language": "python",
         "span.kind": "consumer",
         "websocket.duration.style": "blocking",
         "websocket.message.type": "text"
       },
       "metrics": {
         "_dd.tracer_kr": 1.0,
         "_sampling_priority_v1": 1,
         "websocket.message.frames": 1,
         "websocket.message.length": 7
       },
       "duration": 163000,
       "start": 1758743922893129000
     },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 0,
       "span_id": 5,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d44d7200000000",
         "_dd.span_links": "[{\"trace_id\": \"68d44d72000000008c188f646ba707da\", \"span_id\": \"b685dc792dfdbdc0\", \"attributes\": {\"dd.kind\": \"resuming\"}}]",
         "component": "fastapi",
         "language": "python",
         "network.client.ip": "testclient",
         "out.host": "testclient",
         "span.kind": "producer",
         "websocket.message.type": "text"
       },
       "metrics": {
         "_dd.tracer_kr": 1.0,
         "_sampling_priority_v1": 1,
         "websocket.message.frames": 1,
         "websocket.message.length": 12
       },
       "duration": 58000,
       "start": 1758743922893430000
     },
     {
       "name": "websocket.receive",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 0,
       "span_id": 6,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d44d7200000000",
         "_dd.span_links": "[{\"trace_id\": \"68d44d72000000008c188f646ba707da\", \"span_id\": \"b685dc792dfdbdc0\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
         "component": "fastapi",
         "language": "python",
         "span.kind": "consumer",
         "websocket.duration.style": "blocking",
         "websocket.message.type": "text"
       },
       "metrics": {
         "_dd.tracer_kr": 1.0,
         "_sampling_priority_v1": 1,
         "websocket.message.frames": 1,
         "websocket.message.length": 7
       },
       "duration": 114000,
       "start": 1758743922893613000
     },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 0,
       "span_id": 7,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d44d7200000000",
         "_dd.span_links": "[{\"trace_id\": \"68d44d72000000008c188f646ba707da\", \"span_id\": \"b685dc792dfdbdc0\", \"attributes\": {\"dd.kind\": \"resuming\"}}]",
         "component": "fastapi",
         "language": "python",
         "network.client.ip": "testclient",
         "out.host": "testclient",
         "span.kind": "producer",
         "websocket.message.type": "text"
       },
       "metrics": {
         "_dd.tracer_kr": 1.0,
         "_sampling_priority_v1": 1,
         "websocket.message.frames": 1,
         "websocket.message.length": 3
       },
       "duration": 48000,
       "start": 1758743922893839000
     },
     {
       "name": "websocket.close",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 0,
       "span_id": 8,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d44d7200000000",
         "_dd.span_links": "[{\"trace_id\": \"68d44d72000000008c188f646ba707da\", \"span_id\": \"b685dc792dfdbdc0\", \"attributes\": {\"dd.kind\": \"resuming\"}}]",
         "component": "fastapi",
         "language": "python",
         "network.client.ip": "testclient",
         "out.host": "testclient",
         "span.kind": "producer"
       },
       "metrics": {
         "_dd.tracer_kr": 1.0,
         "_sampling_priority_v1": 1,
         "websocket.close.code": 1000
       },
       "duration": 68000,
       "start": 1758743922893999000
     }]]
