Prerequisites

This document assumes you have already:

Automatic instrumentations

Gentrace automatically collects spans from compliant automatic instrumentations, for example from the AI SDK or Pydantic AI SDK, with minimal global configuration. Here are guides for automatic instrumentations:

Manual instrumentation

Where automatic instrumentations are not available, you can manually construct spans in compliance with the OpenTelemetry specification. Learn more about manual instrumentation.