[[
  {
    "name": "sanic.request",
    "service": "sanic",
    "resource": "sanic.request",
    "trace_id": 0,
    "span_id": 1,
    "parent_id": 0,
    "type": "web",
    "error": 0,
    "meta": {
      "_dd.base_service": "ddtrace_subprocess_dir",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "654a694400000000",
      "component": "sanic",
      "http.method": "GET",
      "http.status_code": "404",
      "http.url": "http://0.0.0.0:8000/not_found",
      "http.useragent": "python-requests/2.28.2",
      "language": "python",
      "runtime-id": "a65fe96a97834a88bf6eac183210a032",
      "span.kind": "server"
    },
    "metrics": {
      "_dd.measured": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 83650
    },
    "duration": 348292,
    "start": 1692712782649956968
  }],
[
  {
    "name": "sanic.request",
    "service": "sanic",
    "resource": "GET /internal_error",
    "trace_id": 1,
    "span_id": 1,
    "parent_id": 0,
    "type": "web",
    "error": 1,
    "meta": {
      "_dd.base_service": "ddtrace_subprocess_dir",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "654a694400000000",
      "component": "sanic",
      "error.message": "division by zero",
      "error.stack": "Traceback (most recent call last):\n  File \"handle_request\", line 83, in handle_request\n    )\n  File \"/root/project/tests/contrib/sanic/run_server.py\", line 38, in internal_error\n    1 / 0\nZeroDivisionError: division by zero\n",
      "error.type": "builtins.ZeroDivisionError",
      "http.method": "GET",
      "http.status_code": "500",
      "http.url": "http://0.0.0.0:8000/internal_error",
      "http.useragent": "python-requests/2.28.2",
      "language": "python",
      "runtime-id": "a65fe96a97834a88bf6eac183210a032",
      "sanic.route.name": "test_sanic_server.internal_error",
      "span.kind": "server"
    },
    "metrics": {
      "_dd.measured": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 83650
    },
    "duration": 1976916,
    "start": 1692712782730214844
  }]]
