[[
  {
    "name": "fastapi.request",
    "service": "fastapi",
    "resource": "GET /500",
    "trace_id": 0,
    "span_id": 1,
    "parent_id": 0,
    "type": "web",
    "error": 1,
    "meta": {
      "_dd.base_service": "tests.contrib.fastapi",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "65e2cd9000000000",
      "component": "fastapi",
      "error.message": "Server error",
      "error.stack": "Traceback (most recent call last):\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/ddtrace/contrib/asgi/middleware.py\", line 302, in __call__\n    return await self.app(scope, receive, wrapped_send)\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/starlette/middleware/errors.py\", line 181, in __call__\n    raise exc from None\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/starlette/middleware/errors.py\", line 159, in __call__\n    await self.app(scope, receive, _send)\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/starlette/exceptions.py\", line 82, in __call__\n    raise exc from None\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/starlette/exceptions.py\", line 71, in __call__\n    await self.app(scope, receive, sender)\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/starlette/routing.py\", line 566, in __call__\n    await route.handle(scope, receive, send)\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/starlette/routing.py\", line 227, in handle\n    await self.app(scope, receive, send)\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/starlette/routing.py\", line 41, in app\n    response = await func(request)\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/fastapi/routing.py\", line 202, in app\n    dependant=dependant, values=values, is_coroutine=is_coroutine\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/.riot/venv_py3713_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_httpx_pytest-asyncio0211_pytest-randomly_requests_aiofiles_fastapi~0640/lib/python3.7/site-packages/fastapi/routing.py\", line 148, in run_endpoint_function\n    return await dependant.call(**values)\n  File \"/Users/zarir.hamza/Tracers/dd-trace-py/tests/contrib/fastapi/app.py\", line 103, in error\n    raise RuntimeError(\"Server error\")\nRuntimeError: Server error\n",
      "error.type": "builtins.RuntimeError",
      "http.method": "GET",
      "http.route": "/500",
      "http.status_code": "500",
      "http.url": "http://testserver/500",
      "http.useragent": "testclient",
      "http.version": "1.1",
      "language": "python",
      "runtime-id": "a89de0282259441ba89e19dca313cc1f",
      "span.kind": "server"
    },
    "metrics": {
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 73182
    },
    "duration": 1239000,
    "start": 1709362576007293000
  }]]
