[[
  {
    "name": "websocket.receive",
    "service": "fastapi",
    "resource": "websocket /ws",
    "trace_id": 0,
    "span_id": 1,
    "parent_id": 0,
    "type": "websocket",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c3c500000000",
      "language": "python",
      "runtime-id": "9a328cba2441453f9d216d5b42060384"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 33262
    },
    "duration": 35000,
    "start": 1758643141753043000
  }],
[
  {
    "name": "fastapi.request",
    "service": "fastapi",
    "resource": "websocket /ws",
    "trace_id": 1,
    "span_id": 1,
    "parent_id": 0,
    "type": "web",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c3c500000000",
      "component": "fastapi",
      "http.upgraded": "websocket",
      "http.url": "ws://testserver/ws",
      "http.useragent": "testclient",
      "language": "python",
      "runtime-id": "9a328cba2441453f9d216d5b42060384",
      "span.kind": "server"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 33262
    },
    "duration": 886000,
    "start": 1758643141752547000
  },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 1,
       "span_id": 2,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d2c3c500000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c3c500000000af55cac71ed4eb0b\", \"span_id\": \"2a8cbbe66740a901\", \"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": 207000,
       "start": 1758643141753578000
     }],
[
  {
    "name": "websocket.receive",
    "service": "fastapi",
    "resource": "websocket /ws",
    "trace_id": 2,
    "span_id": 1,
    "parent_id": 0,
    "type": "websocket",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c3c500000000",
      "_dd.span_links": "[{\"trace_id\": \"68d2c3c500000000af55cac71ed4eb0b\", \"span_id\": \"2a8cbbe66740a901\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
      "component": "fastapi",
      "language": "python",
      "runtime-id": "9a328cba2441453f9d216d5b42060384",
      "span.kind": "consumer",
      "websocket.duration.style": "blocking",
      "websocket.message.type": "text"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 33262,
      "websocket.message.frames": 1,
      "websocket.message.length": 7
    },
    "duration": 134000,
    "start": 1758643141753948000
  },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 2,
       "span_id": 2,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.tid": "68d2c3c500000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c3c500000000af55cac71ed4eb0b\", \"span_id\": \"2a8cbbe66740a901\", \"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": 57000,
       "start": 1758643141754187000
     }],
[
  {
    "name": "websocket.receive",
    "service": "fastapi",
    "resource": "websocket /ws",
    "trace_id": 3,
    "span_id": 1,
    "parent_id": 0,
    "type": "websocket",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c3c500000000",
      "_dd.span_links": "[{\"trace_id\": \"68d2c3c500000000af55cac71ed4eb0b\", \"span_id\": \"2a8cbbe66740a901\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
      "component": "fastapi",
      "language": "python",
      "runtime-id": "9a328cba2441453f9d216d5b42060384",
      "span.kind": "consumer",
      "websocket.duration.style": "blocking",
      "websocket.message.type": "text"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 33262,
      "websocket.message.frames": 1,
      "websocket.message.length": 7
    },
    "duration": 116000,
    "start": 1758643141754353000
  },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 3,
       "span_id": 2,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.tid": "68d2c3c500000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c3c500000000af55cac71ed4eb0b\", \"span_id\": \"2a8cbbe66740a901\", \"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": 49000,
       "start": 1758643141754568000
     },
     {
       "name": "websocket.close",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 3,
       "span_id": 3,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d2c3c500000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c3c500000000af55cac71ed4eb0b\", \"span_id\": \"2a8cbbe66740a901\", \"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": 62000,
       "start": 1758643141754737000
     }]]
