[[
  {
    "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": "68d2c35400000000",
      "language": "python",
      "runtime-id": "eee0a9608532411ea71611fcc2b40c8e"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 32412
    },
    "duration": 38000,
    "start": 1758643028392432000
  }],
[
  {
    "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": "68d2c35400000000",
      "component": "fastapi",
      "http.upgraded": "websocket",
      "http.url": "ws://testserver/ws",
      "http.useragent": "testclient",
      "language": "python",
      "runtime-id": "eee0a9608532411ea71611fcc2b40c8e",
      "span.kind": "server"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 32412
    },
    "duration": 855000,
    "start": 1758643028391975000
  },
     {
       "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": "68d2c35400000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"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": 226000,
       "start": 1758643028392959000
     }],
[
  {
    "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.dm.resource": "websocket /ws",
      "_dd.dm.service": "fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c35400000000",
      "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
      "component": "fastapi",
      "language": "python",
      "runtime-id": "eee0a9608532411ea71611fcc2b40c8e",
      "span.kind": "consumer",
      "websocket.duration.style": "blocking",
      "websocket.message.type": "text"
    },
    "metrics": {
      "_dd.dm.inherited": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 32412,
      "websocket.message.frames": 1,
      "websocket.message.length": 8
    },
    "duration": 70000,
    "start": 1758643028393331000
  },
     {
       "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": "68d2c35400000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"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": 13
       },
       "duration": 49000,
       "start": 1758643028393497000
     }],
[
  {
    "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.dm.resource": "websocket /ws",
      "_dd.dm.service": "fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c35400000000",
      "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
      "component": "fastapi",
      "language": "python",
      "runtime-id": "eee0a9608532411ea71611fcc2b40c8e",
      "span.kind": "consumer",
      "websocket.duration.style": "blocking",
      "websocket.message.type": "text"
    },
    "metrics": {
      "_dd.dm.inherited": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 32412,
      "websocket.message.frames": 1,
      "websocket.message.length": 8
    },
    "duration": 50000,
    "start": 1758643028393637000
  },
     {
       "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": "68d2c35400000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"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": 13
       },
       "duration": 44000,
       "start": 1758643028393769000
     }],
[
  {
    "name": "websocket.receive",
    "service": "fastapi",
    "resource": "websocket /ws",
    "trace_id": 4,
    "span_id": 1,
    "parent_id": 0,
    "type": "websocket",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.dm.resource": "websocket /ws",
      "_dd.dm.service": "fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c35400000000",
      "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
      "component": "fastapi",
      "language": "python",
      "runtime-id": "eee0a9608532411ea71611fcc2b40c8e",
      "span.kind": "consumer",
      "websocket.duration.style": "blocking",
      "websocket.message.type": "text"
    },
    "metrics": {
      "_dd.dm.inherited": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 32412,
      "websocket.message.frames": 1,
      "websocket.message.length": 8
    },
    "duration": 49000,
    "start": 1758643028393897000
  },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 4,
       "span_id": 2,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.tid": "68d2c35400000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"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": 13
       },
       "duration": 46000,
       "start": 1758643028394032000
     }],
[
  {
    "name": "websocket.receive",
    "service": "fastapi",
    "resource": "websocket /ws",
    "trace_id": 5,
    "span_id": 1,
    "parent_id": 0,
    "type": "websocket",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.dm.resource": "websocket /ws",
      "_dd.dm.service": "fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68d2c35400000000",
      "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"attributes\": {\"dd.kind\": \"executed_by\"}}]",
      "component": "fastapi",
      "language": "python",
      "runtime-id": "eee0a9608532411ea71611fcc2b40c8e",
      "span.kind": "consumer",
      "websocket.duration.style": "blocking",
      "websocket.message.type": "text"
    },
    "metrics": {
      "_dd.dm.inherited": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 32412,
      "websocket.message.frames": 1,
      "websocket.message.length": 7
    },
    "duration": 50000,
    "start": 1758643028394172000
  },
     {
       "name": "websocket.send",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 5,
       "span_id": 2,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.tid": "68d2c35400000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"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": 46000,
       "start": 1758643028394306000
     },
     {
       "name": "websocket.close",
       "service": "fastapi",
       "resource": "websocket /ws",
       "trace_id": 5,
       "span_id": 3,
       "parent_id": 1,
       "type": "websocket",
       "error": 0,
       "meta": {
         "_dd.base_service": "tests.contrib.fastapi",
         "_dd.p.dm": "-0",
         "_dd.p.tid": "68d2c35400000000",
         "_dd.span_links": "[{\"trace_id\": \"68d2c354000000000ab36f3693a9cb49\", \"span_id\": \"c000d57200b74041\", \"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": 55000,
       "start": 1758643028394452000
     }]]
