---
title: "AIOHTTP Server Tracing"
description: "Trace AIOHTTP server request spans with Judgment."
sidebar:
  label: "AIOHTTP Server"
seo:
  title: "AIOHTTP Server Tracing with Judgment | Integration Docs"
  description: "Trace AIOHTTP Server spans with Judgment to connect application behavior to production AI agent monitoring and evaluation."
---

AIOHTTP server tracing uses the standard OpenTelemetry AIOHTTP server
instrumentation and routes request spans through Judgment.

{/* @test-flow
  id: tracing-web-aiohttp-server
  lang: python
  env: JUDGMENT_API_KEY, JUDGMENT_ORG_ID
*/}

**uv**

```bash
uv add judgeval aiohttp opentelemetry-instrumentation-aiohttp-server
```

**pip**

```bash
pip install judgeval aiohttp opentelemetry-instrumentation-aiohttp-server
```

```python title="aiohttp_server_tracing.py"
from aiohttp import web
from judgeval import Tracer
from opentelemetry.instrumentation.aiohttp_server import AioHttpServerInstrumentor

Tracer.init(project_name="aiohttp_server_app")
Tracer.registerOTELInstrumentation(AioHttpServerInstrumentor())


async def hello(request):
    return web.json_response({"message": "hello"})


app = web.Application()
app.router.add_get("/hello", hello)
web.run_app(app)
```
