OpenTelemetry
Pydantic AI
Pydantic AI instruments agent runs with OpenTelemetry. Send the spans to your own collector and import the file.
- Turn on instrumentation and export the spans to your collector.
- Follow the OpenTelemetry panel to import.
Import
python harness.py import-otel traces.jsonl --blueprint .harness/harness.yaml --out .harness/runs/otel.jsonl.gz
python harness.py check-logs .harness/harness.yaml --runs .harness/runsWhere the log lands
In your collector's trace file.
How it reaches the harness
Copy the file to where you run the harness.