OpenTelemetry

Pydantic AI

Pydantic AI instruments agent runs with OpenTelemetry. Send the spans to your own collector and import the file.

  1. Turn on instrumentation and export the spans to your collector.
  2. 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/runs

Where the log lands

In your collector's trace file.

How it reaches the harness

Copy the file to where you run the harness.

Read the full guide on GitHub

Frameworks that speak OpenTelemetry

20 platform guides in total.