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

AIOHTTP client tracing uses the standard OpenTelemetry AIOHTTP client
instrumentation and routes outbound HTTP spans through Judgment.

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

**uv**

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

**pip**

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

```python title="aiohttp_client_tracing.py"

from judgeval import Tracer
from opentelemetry.instrumentation.aiohttp_client import AioHttpClientInstrumentor

Tracer.init(project_name="aiohttp_client_app")
Tracer.registerOTELInstrumentation(AioHttpClientInstrumentor())


async def main():
    async with aiohttp.ClientSession() as session:
        async with session.get("https://example.com") as response:
            await response.text()


asyncio.run(main())
Tracer.force_flush()
```
